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 HTML, CSS and JavaScript and the fly likes new tab servlet 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 » Engineering » HTML, CSS and JavaScript
Bookmark "new tab servlet" Watch "new tab servlet" New topic
Author

new tab servlet

Chaveen Ekanayake
Greenhorn

Joined: Jun 01, 2008
Posts: 14
hi guys.
how can I program to open a new window or a tab when dispatch or redirect to another jsp or a servlet?? please help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

By "tab" do you mean a browser tab? Or an HTML/CSS construct?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chaveen Ekanayake
Greenhorn

Joined: Jun 01, 2008
Posts: 14
hI

I meant browser tab or a new window

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

In that case this is an HTML and JavaScript question. I've moved it to a more appropriate forum.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

You can execute a window.open() under JavaScript control. Or you can use the attribute target="_blank" on a link or on a form.
 
Consider Paul's rocket mass heater.
 
subject: new tab servlet