You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Frank Burns <fr...@the-hub.demon.co.uk> on 2004/03/15 19:13:57 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org