Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP pop up boxes  RSS feed

 
Tobi McFarland
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a non-javascript way to pop up a small window using JSP/Servlets? So far my googling research has all suggested javascript only.

Thanks-
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP/Servlet == serverside, JavaScript == clientside.

You can't automatically create a new browser window with anything other than a scripting technology. If you are explicitly clicking on a link and need the page to open in a new browser window you can do that with the features of HTML - but you are better asking in the HTML forum about that.
 
louise rochford
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not really - you can open a new full size window using html, but you can't control its properties

[URL=http://64.233.161.104/search?q=cache 6-ylf8e2LkJ:1stoppopup.com/popexpla01.htm+window+open++%22without+javascript+%22&hl=en&client=firefox-a]See this[/URL]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As pointed out, you either need to use the Javascript window.open() method, or the HTML target attribute.
 
Dharmanand Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tobi McFarland:
Is there a non-javascript way to pop up a small window using JSP/Servlets? So far my googling research has all suggested javascript only.

Thanks-


The answer lies in the fact that you cannot send a response without a request from the client. This is the basic principle of the request-response model. So, I think you better help yourself with javascript or other scripting stuff
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!