*
The moose likes Struts and the fly likes Passing value from one action to another action servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing value from one action to another action servlet" Watch "Passing value from one action to another action servlet" New topic
Author

Passing value from one action to another action servlet

Chandra Mohan
Ranch Hand

Joined: Oct 06, 2003
Posts: 62
Hi

In struts 1.0, I would like to pass parameter from one action servlet to another action servlet. The value of the parameter has not constant, it has been keep on change as per the user input. Our struts application has running in the SAP background and receiving parameter action servlet has SAP class which I can't change. So I have to pass the value in request object. Please let me know how to push parameter / pass the value from one action servlet to another action serlvet ins struts 1.0.

Regards
Chandra Mohan


Thanks and Regards
Chandra Mohan
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

"mohan_cbe", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
tapeshwar sharma
Ranch Hand

Joined: Mar 10, 2006
Posts: 245
Your question is not clear to me.
What's stopping you from appending the request parameter to the url of the second servlet just before you call it?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

May be you can create a session beans , which holds the values you want to pass to another action .. Its not great solution , but it works !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing value from one action to another action servlet