Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSP detecting display resolution



> Okay, I am actually storing this information for each user on the 
> site, storing statistics on my visitors, so I dont think this will 
> work though...

Joachim,

How about this approach:

* Set cookies with X, Y values in JavaScript.
* Apply a servlet filter mapped to all your JSPs (/*.jsp) which extracts 
and records this in a database.  If it's already been recorded for this 
user, ignore.

This has the advantage of not needing to add any particular code to your 
individual JSPs.  All work is done in the Filter.





Daniel Krook, Advisory IT Specialist 
Application Development, Production Services - Tools, ibm.com

Personal: http://info.krook.org/
BluePages: http://bluepages.redirect.webahead.ibm.com/
BlogPages: http://blogpages.redirect.webahead.ibm.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: JSP detecting display resolution (From: Joachim Haagen Bøe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.