aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  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: 60046
    
  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: 60046
    
  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.
 
jQuery in Action, 2nd edition
 
subject: new tab servlet
 
Similar Threads
New conversation for each new window/tab
JTabbedPane listener for: add, close and change selected tab
Share data between jsp and servlet without using request or session
shortcut in Mozilla Browser..
Open JSP page in new tab(browser) from request from servlet