0

Hi buddies,
I need to pass data among servlets and I find it very hard.
What I have so far is passing it via session variable but that crashes my app now and then and seem to be bad approach. How do you transfer data among servlets without crashing the application?

Thanks

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
1

You hardly use session. Maybe you should put it in request and use request dispathcer to send the request to another jsp or servlet.
Use the request.setAttribute(String, Object) and the request.getAttribute(String)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.