aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "opening JSP page in new window" Watch "opening JSP page in new window" New topic
Author

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
"BulletPointsTextOnlyPrintPreviewCurrent.jsp".
First I tryed following code
document.MAINFORM.action = "./BulletPointsTextOnlyPrintPreviewCurrent.jsp";
document.MAINFORM.submit();
It works fine but it is opening the jsp page in same browser window.
Then I tryed window.open, 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!
-Dhananjay


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: 5371
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
Marshal

Joined: Jan 10, 2002
Posts: 61610
    
  67


hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: opening JSP page in new window