Forums Register Login

check for javascript load

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks for the suggestion.
And then the flying monkeys attacked. My only defense was this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 547 times.
Similar Threads
Validation, Servlet or not?
Is javascript enabled?
Who should verify the sanity of data?
Reloading form page when there's error
Setting and removing session attributes - is this the right way to do this?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:31:57.