This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes Don't want to use ActionForm only Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Don Watch "Don New topic

Don't want to use ActionForm only Action class

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
I don't want to use ActionForm class but I want to use Action class.
What to do?
Franck Tranchant
Ranch Hand

Joined: Aug 07, 2003
Posts: 75

Nothing special to do then :
In your struts-config file, leave your Action description without any name, so it won't be mapped to any Form.
Define the usual forwards and your Action will be available.


<action path="/MyAction" type="my.package.MyAction" input="input" scope="request">
<forward name="input" path="/input.jsp" />
<forward name="success" path="/myJSP.jsp" />
<forward name="error" path="/error.jsp" />
[ December 05, 2005: Message edited by: Franck Tranchant ]

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Don't want to use ActionForm only Action class
It's not a secret anymore!