This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes what happens if i diable javascript in my browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what happens if i diable javascript in my browser?" Watch "what happens if i diable javascript in my browser?" New topic
Author

what happens if i diable javascript in my browser?

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi, i am using clientside validation for filling up registration form so if the user just disable the javascript then it will be very worst condition at the server side

so is ther any other way to overcome this problem other than serverside validation


please help me out
thanks in advance


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

You should never rely on client-side validation. Always validate on the server. Client-side validation is only to be nice to the user.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by Bear Bibeault:
You should never rely on client-side validation. Always validate on the server. Client-side validation is only to be nice to the user.


ok well, then what is the use of javascript?
so you mean ther is no importance of javascript

if we are not using javascript in client side validation then where actually is used ?
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
What Bear Bibeault is trying to say is that "You should never reply on client-side validation". Means you should have server site validation aslo along with the client side validation.


My blood is tested +ve for Java.
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
In other words, you can use JavaScript for whatever you want on the client, but do not make it so that the server side of the application (the JSP or Servlet) depends on whatever the JavaScript may do.
GS Chidam
Ranch Hand

Joined: Jul 07, 2006
Posts: 34
What Bear Bibeault is trying to say is correct, always you cannot depends on client side validation using javascript. You can do client side validation, and also you need server side validation.

If you only depends on javascript validation, it may fail in the penetration test(Man Middle attack)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Exactly. Client-side validation is great for giving the user immediate feedback, but you cannot depend upon it to validate your data or to provide security,
 
Consider Paul's rocket mass heater.
 
subject: what happens if i diable javascript in my browser?