Hello Frank

        ActionForm in no necesary if you don't use the <html:form> tag.. if
you use it then you have to use an actionform even if you don't have any
validation on it.

        Hope it helps,

        Johann

-----Original Message-----
From: Frank Burns [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 1:14 PM
To: Struts Users Mailing List
Subject: ActionForm necessary?


I have a jsp form which has fields that require no validation. So I don't
need to validate the form input.
If I don't include an ActionForm, I get a "... null form ..." error message.
Does this mean that I MUST create ActionForms, even if they are "empty" -- 
i.e., no validate() method and no getters/setters defined?

Here's my mapping. The ActionForm  referred to by "saveDocHyperlinksForm" is
empty. So why can't I simply OMIT the "name", "scope" and "validate"
name/value pairs?

  <action path="/saveDocHyperlinks"
   type="com.domain.some.struts.SaveDocHyperlinksAction"
   name="saveDocHyperlinksForm"
   scope="request"
   validate="false">
   <forward name="success" path="/sysAdminModule/protectedPages/links.jsp"
/>
  </action>

Thanks,
Frank.


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


Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure, or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. 

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

Reply via email to