permaculture playing cards*
The moose likes Servlets and the fly likes can I redirect to another frame??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can I redirect to another frame??? " Watch "can I redirect to another frame??? " New topic

can I redirect to another frame???

Tom John

Joined: Jun 29, 2001
Posts: 10
I want to send a post request to a serlvet but then redirect the response to a frame other than the one that submitted the post. Is this at all possible using 'response.sendRedirect' or any other way???
Thanks in advance
rajesh katti

Joined: May 24, 2001
Posts: 10
Yes..that is one way.
Other way is u can give action to the other file name in <form> tag whcih u want to execute.
Patrick Metz

Joined: Sep 28, 2001
Posts: 3
Hi rajesh!
I have the same problem but I have to use "response.sendRedirect". Unfortunately you haven't told us yet how to solve the problem that way.
What I'd like to do is something like this (I know the code is wrong):
response.sendRedirect(response.encodeURL("test.jsp", target="myFrame"));
A nice solution for me would be destroying the frameset via JSP-code before I send the response. But how?
I am really stucked with this...
Patrick Metz

Joined: Sep 28, 2001
Posts: 3
Ok, forget it... I solved my problem on my own.
I am sorry, but it seems that I can't help Tom with his problem because it's too different from mine. I just wanted to get rid of the whole frameset and Tom wants to adress a certain frame in a frameset!
But thanx anyway...
wood burning stoves
subject: can I redirect to another frame???
Similar Threads
redirect in target = parent
Forwarding the current page to previous page
Redirecting of one frame to another frame
directing output to a frame
redirecting page in JSP