• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validation of fields in JSP

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I have question normally what we do for validation of any fields in JSP we use JavaScript (Client Side) and also we do validation at server side.
It is know that some one can bypass client side validation so it is mandatory to do server side validation also but what if we call JavaScript on submit button and from there we submit action then also server side validation is required.

What am I thinking even if he disable JavaScript the user cannot submit the form. Is there any way even after that he can bypass validation.

Thanks..!!
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dinesh Pise wrote:
What am I thinking even if he disable JavaScript the user cannot submit the form. Is there any way even after that he can bypass validation.



if the submit bounded to JS. and there is no JS enable on browser then, the form submission will take place- in case you use input type=submit.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The bottom line is to simply make sure that server-side validation always takes place. Always.
 
Dinesh Pise
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:The bottom line is to simply make sure that server-side validation always takes place. Always.



I agree there should server side validation, but is there any way that user can submit the form

if the submit bounded to JS. and there is no JS enable on browser then, the form submission will take place- in case you use input type=submit.



My input type is button and not submit
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic