Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing the browser size in a JSP  RSS feed

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to have a class in a jsp page capture the browser size. I want to show a map size relative to the browser size when it is brought up. This map is generated by some java classes.

TIA


[ February 04, 2005: Message edited by: Dale DeMott ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Browser "size" is a purely client-side concern, so JSP's can't interact with it at all.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm.. that's true. I wonder if there might be a way to have a previous page have some javascript pass in the page size via a submit. Then have the servlet pick it up for the next submitting. Sound possible?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've got a JSP Forum where this discussion would be more appropriate; I'll move it there for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!