File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes javascript/css info sent to servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "javascript/css info sent to servlet?" Watch "javascript/css info sent to servlet?" New topic

javascript/css info sent to servlet?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Is there any information sent along with a request, or as a header, that
specifies whether or not javascript and css are enabled? Thus, a
servlet could use this information to redirect the user to some "please
enable these features" page. For our current application, we just use
the <noscript> html tag to handle browsers that don't support javascript
or have it disabled, sending the user to a "please enable javascript"
page. This is fine for javascript, but if a broswer has css disabled,
the page still loads normally (and ugly, since the css isn't used).
Also, is there some sort of <noscript> feature for css?
thanks in advance,
I agree. Here's the link:
subject: javascript/css info sent to servlet?
It's not a secret anymore!