dcsimg
Open web page in Main frame on response from servlet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Jacky
Posted On:   Thursday, September 29, 2011 08:19 AM

My web page has Frameset which has some frames in it. From one of the inner frame I am sending request to Servlet, servlet then generates a response and calls JSP page.

response.sendRedirect("/login.jsp");

Problem is: My page opens in that inner frame only. I want to open it in Main frame.

Please suggest me some ways of doing this.

Note: I am not using ANCHOR tag for generating request. My response is coming from servlet.

Re: Open web page in Main frame on response from servlet

Posted By:   Stephen_McConnell  
Posted On:   Thursday, September 29, 2011 02:57 PM

This is because, as you probably know, your request is being made from within the iFrame.


A possible solution is to set it up so that instead of having the inner frame make the request, it is done via a javascript button or action that tells the main frame to make the request. Then, the response is returned to the main frame.


Stephen McConnell

About | Sitemap | Contact