You shouldn't ever have to create the form yourself if you:

- declare the form-bean in your config file
- use the name of the form you declared in the action mapping's "name" attribute

<form-bean name="myForm" ... />

...

<action path="/somePath" name="myForm" ... />

That should suffice. What you should find is that the form is created for you. Doing things as I mention simplifies you actions so that they can just expect the form to be there. If the form is not there you will probably NPE. That would indicate that you didn't create the association (by setting name="myForm") or Struts wasn't able to create the form for some odd reason.

Susan Bradeen wrote:

Nevermind, answering my own question ...
actions in the Struts examples don't use the second line of code, so the answer is no, you don't need the two together.

Susan

--
Eddie Bush



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to