• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

opening JSP page in new window

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can pass parameters in URL.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

hth,
bear
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic