Are you casting the ActionForm in to your own form in your save action?

like:

    public ActionForward execute(ActionMapping mapping,
                                  ActionForm form,
                                  HttpServletRequest request,
                                  HttpServletResponse response)
    throws Exception 
           {
            MyForm myForm = (MyForm) form;
           }


Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.
----------------------------------------------------------------------------------------






"Richard Hightower" <[EMAIL PROTECTED]>
15/01/2004 03:14 PM
Please respond to "Struts Users Mailing List"

 
        To:     "Struts Users Mailing List" <[EMAIL PROTECTED]>
        cc: 
        Subject:        RE: ActionForm is not automatically popluated.




-----Original Message-----



Hi,

I have a tomcat/struts/velocity application that uses a
fairly standard ActionForm bean to validate user input.
My problem is that none of the fields in the ActionForm
bean become populated when the user submits the form.

I can retrieve the values from the form in the pRequest
parameter to the ActionForm.validate() method. The name
of the get/setFoo() methods in the ActionForm bean
matches the names of the fields in the submitted form.

What could be the problem?

JDK version 1.4.2_02
Tomcat version 4.0.6
Struts version 1.1

--
Regards
Andr� Risnes

---------------------------------------------------------------------
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]






Reply via email to