A
Anan H. Samiti
When I define something like the following in my ActionClass (in a Struts/JSP Architecture)
request.setAttribute("myVo", myVoObject);
I could access this object from my JSP page (as far as I know) by declaring a bean like:
<jsp:useBean id="myVo" class="mypackage.myVo" />
resp.
<bean:define id="myid" name="myVo" property="getVo" type="mypackage.myVo" />
But what is the difference?
Is the next html:text tag valid for both declarations?
<html:text name="myidValue" property="myValue" size="10" value="<%= myVo.getMyValue() %>" />
Anan
request.setAttribute("myVo", myVoObject);
I could access this object from my JSP page (as far as I know) by declaring a bean like:
<jsp:useBean id="myVo" class="mypackage.myVo" />
resp.
<bean:define id="myid" name="myVo" property="getVo" type="mypackage.myVo" />
But what is the difference?
Is the next html:text tag valid for both declarations?
<html:text name="myidValue" property="myValue" size="10" value="<%= myVo.getMyValue() %>" />
Anan