This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 actionforms" Watch "struts 2 actionforms" New topic

struts 2 actionforms

viju vi

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

<action path="/Name" type="example.NameAction" name="nameForm" input="/index.jsp">
<forward name="success" path="/displayname.jsp"/>
<forward name="failure" path="/index.jsp"/>

or just have a look.

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: struts 2 actionforms
It's not a secret anymore!