I do have <html:form action="action/editUser"> in the code I just did not included in the email. I also have the following in my jsp:
<jsp:useBean id="user" scope="request" class="com.basf.plasticsportal.data.User"> <jsp:setProperty name="user" property="*" /> </jsp:useBean> thanks, Diego. -----Original Message----- From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 7:31 AM To: Struts Users Mailing List Subject: Re: newbie question - usebean Your code doesn't show any <html:form> tag. This tag is used by struts to set the targeted action, and so the associated bean in some scope. You can use <html:text> without <html:form> by setting it's "name" attribute (name="user" in your case). But if your HTML form has to be commited to a Struts action, you should look at <html:form> Nico. > I have a jsp page being called by an action that passes a user type in the > request. > the jsp has the following code: > > <tr> > <td><bean:message key="prompt.username" />: </td> > <td><html:text property="username" size="50" maxlength="50" /></td> > </tr> > <tr> > <td><bean:message key="prompt.firstname" />: </td> > <td><html:text property="firstName" size="50" maxlength="50" /></td> > </tr> > <tr> > <td><bean:message key="prompt.lastname" />: </td> > <td><html:text property="lastName" size="50" maxlength="50" /></td> > </tr> > <tr> > <td><bean:message key="prompt.address1" />: </td> > <td><html:text property="address1" size="50" maxlength="50" /></td> > </tr> > > My problem is that the only value displaying on the browser is the username. > When I write the following scriptlet: > <% out.println( ((User) request.getAttribute("user")).getFirstName)); %> > the first name displays. > > Any help will be greatly appreciated > > Diego. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]