By virtue of the properties being in the form you don't need to have it in the name attribute.. At the moment your html:text does this
userForm.getUserForm().getFullname();
try <html:text property="fullname" />
Which will be doing userForm.getFullname();
Mark
On 25 Sep 2004, at 13:53, Greg Preston wrote:
All,
I have recently upgraded to Struts distribution 1.24 and am having a problem I can't explain. I have a Action that ends up calling a business class which returns an Form. If I place the Form in the request object the subsequently called JSP page (USER.JSP) can render the content via <HTML:TEXT> tags. If I place it in the session that same JSP page will not render any data in the <HTML:TEXT> tags however will render the same data if the <BEAN:WRITE> tags are used. I've been using Struts for awhile and think I've got a handle on how its to work, but I'm at my wits end over this. Code below. Thanks in advance. -Greg
USER.JSP:
<bean:write name="UserForm" property="fullname"/> //** This returns data **//
<html:form action="/user.do">
<table border="1">
<tr>
<td>Full name:</td>
<td><html:text name="UserForm" property="fullname"/></td> //** This does not **//
</tr>
..
..
</table>
</html:form>
Struts-Config.xml
..
<action
path="/fetchResellerProfile"
name="UserForm"
scope="session"
validate="false"
type="com.intv.it.onlinereports.action.FetchResellerProfileAction">
<forward name="success" path="/WEB-INF/pages/user.jsp"/>
<forward name="error" path="/WEB-INF/pages/error.jsp"/>
</action>
...
Greg Preston| IT Business Solutions |Intervoice, Inc. - Dallas, Texas | (t) 972.454.8871 (c) 214.405.8871| [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]