File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
Don't want to use ActionForm only Action class
Joined: Nov 21, 2005
Dec 05, 2005 06:00:00
I don't want to use ActionForm class but I want to use Action class.
What to do?
Joined: Aug 07, 2003
Dec 05, 2005 06:41:00
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 agree. Here's the link:
subject: Don't want to use ActionForm only Action class
multiple forms in struts
html:form and ForwardAction
Domain Object as Strtus Action form.
Initializing bean in actionForm
Query regarding Dispatch Action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014