"DynaActionForm" with html:form tag
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   X_Chen
Posted On:   Thursday, January 12, 2006 03:50 PM

Hi, all

I have such problem when use like this:

in the JSP page, can I declare like this:

			
;



I got "java.lang.NullPointerException" if I did this. "myform" match the



in the struts-config.xml.

Thanks.

Re: "DynaActionForm" with html:form tag

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, January 15, 2006 02:17 PM

oh and also I think you need to leave out the "name" too, from your html:form tag (and "post" is the default, for "method"). All you should specify, for the html:form, is the "action", as "seahorse".



Then your struts-config need the action-mapping for seahorse, and you specify the "name" there, for the form-bean.

Re: "DynaActionForm" with html:form tag

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, January 15, 2006 02:15 PM

I am guessing (?) that you should leave out the "type" and for the "action" just put "seahorse". The type of the form-bean goes in the struts-config.xml, and the prefix for actions goes in the web.xml.
About | Sitemap | Contact