File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirecting in same page?" Watch "Redirecting in same page?" New topic

Redirecting in same page?

Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 90
In servlets when i use
its getting redirected with the same window itself.. but i need to redirect and open in a new window....

Ben Souther

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

Joined: Mar 26, 2008
Posts: 1
use javascript to redirect your page on client side.
I agree. Here's the link:
subject: Redirecting in same page?
It's not a secret anymore!