File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 33102

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: opening a jsp page in a new windows
It's not a secret anymore!