• 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

Validator Framework Vs JavaScript

 
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As javascript has some limitations like oldier browsers doesn't support it and once can disable javascript in it's browser, javascript will execute is not gaurrented. Other option is server side validation like Validator Framework but it's a server trip and hence will take more time.Also not all view level validation can be performed immediately (like disabling/enabling controls)

Can we combine javascript and validator in a way such that if user is using new browsers with javascript enabled, validation will be done on client side else on server side..The drawback of this approach is that we need to write 2 validations (client Side and server side) which will also be hard to maintain.

What are the best practices in struts to do the validation ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic