File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can I redirect to another frame???

 
Tom John
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic