Originally posted by Andrey Opanasets:
Hi
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...
cheers,
mpr
SUN Certified Business Component Developer Java EE Platform 5 (2008)<br />SUN Certified Developer for Java Web Services (2007)<br />IBM WebSphere Portal V5.1 Application Development (2006)<br />SUN Certified Web Component Developer (2001)<br />SUN Certified Java 2 Programmer (2001)
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 ?
RAQ Report: Web-based Excel-like Java reporting tool.
I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Please provide me help on how to pass those three parameters( a string, two dates) to another jsp .
I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|