I would like to know if having an ActionForm is necessary for each form.
No, it is not.
Here's the snippet from struts-config.xml : <action path="/logout" type="com.labs.argenerator.LogoutAction"> <forward name="success" path="/Login.jsp"/> </action>Here's the snippet from the jsp page:<html:form action="logout.do"><html:submit><bean:message key="button.exit"/></html:submit></html:form>Can someone tell me what is wrong here?
<html:form/> tag needs a form, so to get rid of error you should:
1) not use this tag, instread use plain HTML <form> tag,
2) add empty, dummy dynaForm and assign it to the action using "name" attribute,
3) not use HTML form at all, but rather <html:link/>.