Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 27th, 2004, 07:59 PM
whitelines's Avatar
whitelines whitelines is offline
action=(isSleep())?sleep:code;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182 whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level) 
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
__________________
/*
* www.benjaminranck.com
* bjamins.blogspot.com
*/

Reply With Quote
  #2  
Old March 28th, 2004, 02:20 PM
KhalidAli KhalidAli is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 100 KhalidAli User rank is Corporal (100 - 500 Reputation Level)KhalidAli User rank is Corporal (100 - 500 Reputation Level)KhalidAli User rank is Corporal (100 - 500 Reputation Level)KhalidAli User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 3 h 13 m 4 sec
Reputation Power: 11
I don't think there is a parameter within the HTTP HEADER that determines the scripting is enabled or disabled in a client(browser).
You will have to rely on scripting itself

Reply With Quote
  #3  
Old May 4th, 2004, 11:53 AM
whitelines's Avatar
whitelines whitelines is offline
action=(isSleep())?sleep:code;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182 whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 8 m 29 sec
Reputation Power: 14
Yeah, the obvious solution.
All buttons which submit information are generated using javascript, this prevents non-javascript enabled browsers etc from submitting information which hasn't been javascript validated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Using JSP to find scripting support ?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap