| Author |
struts 2 actionforms
|
viju vi
Greenhorn
Joined: Nov 15, 2007
Posts: 7
|
|
hi all Can anyone help me on how to map beans to action class. please let me know on this...
|
"No problem can be solved from the same level of consciousness that created it." Albert Einstein
|
 |
Dhana Sen
Ranch Hand
Joined: Mar 05, 2006
Posts: 33
|
|
<form-bean name="nameForm" type="example.NameForm" /> <action path="/Name" type="example.NameAction" name="nameForm" input="/index.jsp"> <forward name="success" path="/displayname.jsp"/> <forward name="failure" path="/index.jsp"/> </action> or just have a look. http://www.allapplabs.com/struts/struts_example.htm Cheers Dhana
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
Struts 2 does not use ActionForms. The paradigm in Struts 2 is that the Action class itself acts as both Action and ActionForm. Any input fields on the JSP should have corresponding properties on the Action class. Once you've been through some basic Struts 2 tutorials, you'll understand this new paradigm.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: struts 2 actionforms
|
|
|