Hi Guys ... I have an existing JSP which is coded like this.
/<%
if( (request.getParameter("userid")!=null) && (request.getParameter("token")!=null) ) {
session.setParameter("USERID", request.getParameter(userid);
session.setParameter("Token", request.getParameter(token);
send.redirect(another.jsp);
}
/%>
< ----- here i have the normal HTML contents where i ask for userid from the user
and upon clicking submit, java script function openwindow() is called ----- >
function openwindow(){
< -- here i open a modal window which calls a URL with userid (get method)
and as return value i get userid and token back.
Now i set this to document.Parent.userid and document.Parent.token --- >
document.Parent.userid = retval.userid;
document.Parent.token = retval.token;
Parent.submit();
}
With the above mentioned JSP, I face a problem that when I invoke the JSP using sample.jsp?userid=dhfgd&token=dhdhd, the control directly goes to another.jsp since the request parameters are set.
To avoid this, kindly suggest me a probable solution without making much changes in code. Thanks in advance