• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

opening JSP page in new window

 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can pass parameters in URL.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hth,
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic