
March 27th, 2004, 07:59 PM
|
 |
action=(isSleep())?sleep:code;
|
|
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182
  
Time spent in forums: 15 h 8 m 29 sec
Reputation Power: 14
|
|
|
Using JSP to find scripting support ?
I was wondering if there was a method using JSP or Java
to find whether or not a client has scripting enabled.
Currently I'm using:
Code:
<noscript>
<h1>This page requires javascript to run</h1>
<meta http-equiv="Refresh" content="0; URL=noJavascript.jsp" />
</noscript>
But it's clumsy, non-standard and it's possible to get around, if you're quick enough with the stop button.
Im looking for some method along the lines of
Code:
<c:if test="${param.noScript}">
<jsp:forward page="noJavaScript.jsp" />
</c:if>
But have no idea if such a parameter can be found, I've already gone through the request headers availabe in the pageContext, but can't find anything which indicates scripting support, any ideas would be great.
Thanks,
W
|