Hi,

Sometimes when a user clicks on a link on one page it becomes necessary to send parameters to the next page

lets say i have <a href='MyFavourite.JSP'?id =2,path=/myproject/mydirectory/MyOtherJSP> My Favourite JSP</a>

when i will click on the above link it will get transformed into :

http://localhost:8080/myproject/MyJsp.jsp?id=2,path=/myproject/ mydirectory/MyOtherJSP

Within MyFavouriteJSP if i want to access the query string .. i can get it using
String queryString = request.getQueryString();


Now i can parse the queryString and get the individual values for "id" and "path" .. ie. "2" and "/myproject/mydirectory/MyOtherJSP"

is there a method which would return the values if i specify the name of the parameter to them ?

like someobject.getParameter("id") would give me 2 .... would request.getParameter("id") do it ? or is there some other method ?

Thanks.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to