This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes opening a jsp page in a new windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "opening a jsp page in a new windows" Watch "opening a jsp page in a new windows" New topic

opening a jsp page in a new windows

Mohd Asim

Joined: Jul 04, 2007
Posts: 24
I am developing a struts based web application. The JSP that i am currently working on has a registration form which saves users to a database upon clicking a submit button. there is another button called report that maps to an action that queries that database and forwards the results to a new JSP page. I want the forwarded JSP page to open in a new window instead of opening in the same registration page. Any help? Thanks in advance.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31585

You can use target='_new' to open a page in a new window.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: opening a jsp page in a new windows