Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Struts 1.3 --> How to send current request param values from one Action to another while action chai
Santanu Guha
Greenhorn
Posts: 20
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to forward parameter and values from one Action class to another while Action chaining in
Struts
1.3 /1.2
I want to send some form value from FirstAction to Second Action . Please suggest
public class FirstAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Developer Logic return mapping.findForward("success"); } } /* com/SecondAction.java */ ... public class SecondAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws] Exception { // Another Logic return mapping.findForward("success"); } } For chaining action of these two action the code of action in struts-config.xml file. <action-mappings type="org.apache.struts.action.ActionMapping"> <action path="/First" type="com.FirstAction" validate="false"> <forward name="success" path="/Second.do" /> </action> <action path="/Second" type="com.SecondAction" scope="session" validate="false"> <forward name="success" path="/Output.jsp" /> </action> </action-mappings>
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Passing MyForm parameters with database retrieved values to Multiple Struts Actions
Struts2- How to pass dynamic parameters from one Action class to another Action class
Passing value from one action to another action servlet
Struts Passing parameters
display in Jsp
More...