This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Redirecting in same page?
It's not a secret anymore!