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 JSP page in new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "opening JSP page in new window" Watch "opening JSP page in new window" New topic

opening JSP page in new window

Dhananjay Inamdar
Ranch Hand

Joined: Jan 27, 2003
Posts: 130
Hello Guys,
I have one JSP page "TextOnly.jsp', which has one link "Print Preview".
If user presses on this link then I have to open a new window which will show new jsp file
First I tryed following code
document.MAINFORM.action = "./BulletPointsTextOnlyPrintPreviewCurrent.jsp";
It works fine but it is opening the jsp page in same browser window.
Then I tryed, which is opening the JSP page in all together new window.
But the problem is that when I am trying to pass some values from my "TextOnly.jsp" page to this
"BulletPointsTextOnlyPrintPreviewCurrent.jsp" page they are not passing.
Only "null" values are passed to the page. These parameters are very important for building a SQL query.
So, will any one tell me how can I achieve my task?
Thanks in advance!

Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5382
You can pass parameters in URL.

"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873


[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: opening JSP page in new window
jQuery in Action, 3rd edition