wood burning stoves*
The moose likes Servlets and the fly likes Redirecting in same page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirecting in same page?" Watch "Redirecting in same page?" New topic
Author

Redirecting in same page?

Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 88
Hi,
In servlets when i use
response.sendRedirect(myResources.getString("http://google.com");
its getting redirected with the same window itself.. but i need to redirect and open in a new window....

thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

That needs to be done from the client side.

Look at the 'target' attribute of either your anchor tag or form tag.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
chhh ooo
Greenhorn

Joined: Mar 26, 2008
Posts: 1
use javascript to redirect your page on client side.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirecting in same page?