wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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: 60810
    
  65

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: 60810
    
  65

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: 60810
    
  65

You can execute a window.open() under JavaScript control. Or you can use the attribute target="_blank" on a link or on a form.
 
 
subject: new tab servlet
 
Similar Threads
JTabbedPane listener for: add, close and change selected tab
New conversation for each new window/tab
shortcut in Mozilla Browser..
Share data between jsp and servlet without using request or session
Open JSP page in new tab(browser) from request from servlet