Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check for javascript load

 
John Campbell
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inside the servlet I would like to check if the request has been gone through javascript validation or not. The reason I need this is because the request might be intercepted by hackers between the web browsers and the web server and javascript could be disabled. Is there a way to check in servlet if javascript validation is loaded?
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say no, there is no way to trust the client side 100%. All of your source code, both HTML and Javascript is available on the client side. As such, you cannot be sure of the integrity of the data.

The result is that you should never trust the client. Always verify all data in an environment that you control.
 
John Campbell
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic