dcsimg
Redirection on web server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhay_Shukla
Posted On:   Wednesday, May 3, 2006 10:35 AM

I have one of my JSP renamed/moved. When users hit that page, I have configured the web server to redirect the user to a temporary page (temp.jsp) which forwards the request to appropriate servlet/jsp.
My problem is, the old jsp used to take some parameters, something like this: www.abc.com?pageparam=xyz
Now due to redirection at web server, this parameters seems to be lost. I tried to use request.getParameter("pageparam"); in temp.jsp to retrieve that parameter but didnt get it.
Any suggestion to resolve this is really appreciated.

Re: Redirection on web server

Posted By:   krishnan_GM  
Posted On:   Thursday, May 4, 2006 07:12 AM

Hi
while redirecting you won't be able to get the parameter. so try setting them as session variable ie, session.setAttribute("pageparam",); and in the target page you can get it as session.getAttribute("pageparam");
About | Sitemap | Contact