wood burning stoves*
The moose likes Other Application Frameworks and the fly likes Pass some value from one servlet to another servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Pass some value from one servlet to another servlet" Watch "Pass some value from one servlet to another servlet" New topic
Author

Pass some value from one servlet to another servlet

vipul pal
Greenhorn

Joined: Nov 04, 2011
Posts: 3
I am working on Turbine and Spring simultaneously and want to pass some value (like authentication, session id, current page information) from turbine to spring page and both are in same tomcat server.
Please do the needed help.....
hemantha kumar k
Greenhorn

Joined: Apr 20, 2010
Posts: 27

Create the Context Class make all the methods as static and populate the all the fields in Turbine and access it in Spring page



you can make it generic also as you use setAttributes in Servlets

use the HasMap to create your Context Class


vipul pal
Greenhorn

Joined: Nov 04, 2011
Posts: 3
Please explain with a example because i m very new .....

Thanks for your reply
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pass some value from one servlet to another servlet
 
Similar Threads
communication Between two servlets
MVC, JSP/Servlet/Bean Design Issue
API to get Browser from UserAgent string
RequestDispatcher - regarding
How to navigate from jsp-to servlets-and again to another -jsp