wood burning stoves 2.0*
The moose likes Struts and the fly likes struts 2 actionforms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 actionforms" Watch "struts 2 actionforms" New topic
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: struts 2 actionforms
 
Similar Threads
A Challenge!
Google India CodeJam
acronym atrocity
13 Nov Riddle
How many Brits and Europeans on this board?