This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can I redirect to another frame??? " Watch "can I redirect to another frame??? " New topic
Author

can I redirect to another frame???

Tom John
Greenhorn

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
Greenhorn

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
Greenhorn

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
Patrick Metz
Greenhorn

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...
cya
Patrick
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can I redirect to another frame???