Hi All, Is there a way to open up a servlet/jsp/html in another frame using getRequestDespatcher()?? I have to open up a html page from a servlet (which is inside a frame) using getRequestDespatcher(). Please help out. Regards, Vijay
Vijay, If you are calling this servlet via HREF then <a href=myServlet target=new>Hi</a> If you are calling thr' a form then syntax would be <form action=myServlet target="new" method=post > .... ... <form> Is that what you want ? Regards.
Deep Narsay, It seems I am not able to explain the problem I am sorry for this. I am using getRequestDespatcher() method to forward request to an html page (login page), but I want to open this html page in another frame (not in the same frame as the servlet). My page is divided in 2 frames , upper part contains an applet which calls the servlet, if servlet is not able to retrieve the session for the user it forward the request to login.html but because its applet which is calling the servlet ( and I donot have source code for applet) I cannot pass the target parameter to servlet while calling it. I need a method to open the login.html in 2nd frame. Thanks for replying. Regards, Vijay
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss