• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the user's screen resolution via JSP?  RSS feed

 
Kino Lobo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is such thing possible?
I know we can use javascript stuff, but I'm trying to figure out a way
to do it with Java...

Thanks!
[ June 20, 2006: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That information is not passed as part of a normal HTTP request so there is no way to do this from the server side using Java.
 
Kino Lobo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, guy now I'm confused...
Because it worked! I created a Bean, now I can
pick the info in my page using jsp and EL...
???

Next step, a custom tag! jstl should already have something like this...
 
Kino Lobo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no way to do this from the server side


I'm doing local tests only, so I was thinking...
could it be possible that the resolution I'm getting is just the server's resolution, which in my case is the same machine that makes the request?
 
Kino Lobo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops!
That's exactly it!
So, is javascript the only option?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!