IntelliJ Java IDE
The moose likes JSP and the fly likes opening JSP page in new window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 128
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: 5369
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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691


hth,
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
IntelliJ Java IDE
 
subject: opening JSP page in new window
 
Threads others viewed
Form in New window
Problem with pop-up window
submit form of child window and show the new screen in parent window.
Refresh parent jsp when child jsp closes
problem with window.ShowModelDialog()
MyEclipse, The Clear Choice