Originally posted by Andrey Opanasets:
You can use session.getAttribute() and session.setAttribute() methods. Also you can use cookie and url-rewriting
Originally posted by Manjunath Reddy:
>>Now I want to pass 2 parameters - one is received from the >>http call (of 1st JSP) & the other is from dB search - to >>second jsp using 'forward' tag.
Forward tag doesnt support this.
>>How can I do this? Is this doable? If not what are my other >>options?
There are several options.
1. If the data to be passed is small one can pass them as query string parameters or as hidden field.
2. The other method is more popular. Here one can set the parameters into the request object either as a String param or as a Custom Class containing the parameters. User request.setAttribute("myparams", MyParams) and in the second page use request.getAttribute("myParams").
Hope this gets u going...
Bear Bibeault wrote:It is not longer 2001 when this was originally posted. It is no longer considered acceptable to put scriptlets in a JSP.
Suresh Kanagalingam wrote:<%jsp:forward page=="/Mydir/test.jsp"?Key=1234568&Schema=COM/>
Do you know what is wrong with my syntax?
Santhosh kumar Ravindran wrote:i cant understand what you are arriving at. will you explain little broad ?
Please provide me help on how to pass those three parameters( a string, two dates) to another jsp .
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton