On 11/08/2003 14:59 [EMAIL PROTECTED] wrote:
Not able to get attributes from ActionForm into html form


//in action form


        MemberDetailsEditForm returnForm = new MemberDetailsEditForm();
        MemberVO vo = (MemberVO) results.iterator().next();

        returnForm.setFirstName(vo.getFirstName());
        returnForm.setLastName(vo.getLastName());

request.setAttribute("results", returnForm);
~~~~~~~~~ is this the same as the name attribute in
your struts config for the post action???


because if it isn't (or if the name is right but you didn't specify request scope in struts config) then Struts will ignore it and create an empty form bean then use that.

HTH

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller Business |
| Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to