Hi all,
I am a bit stuck on how to get the values i populated in a form bean in a action class to be displayed in my
JSP.
I want to edit a user. Thus the user selects edit from the search screen and it goes to the editaction.class. In this class I populate a form bean lets call it editForm bean and put this into the session using the following code:
EditForm updateForm = new EditForm();
updateForm.setFirstName("xxxxxxxx");
HttpSession session = httpServletRequest.getSession();
//httpServletRequest.setAttribute("updateForm", updateForm);
session.setAttribute("updateForm", updateForm);
The action class forwards onto the edit jsp which lets the user edit the first name.
however the value xxxxxxxx does not appear in the html text element of the jsp.
<td width="16%" height="36">
<html:text property="firstName"></html:text>
</td>
This will then be submitted again and is enclosed within a html:form tag which is not shown here.
Can anyone advise me on what I am doing wrong.
Thanks