using spring validation on request headers -


Using spring verification frame with spring MVC to validate the presence / value of an HTTP request header possible?

Thank you!

I do not know how this will be possible, because the verification framework only operates on your domain object, Not on HTTP request Specifically, the HttpServletRequest object does not specify any method to take, which requires you to access to capture and test the headers.

The use of the verification framework seems to be inaccurate, the solution to the problem you are trying to solve, especially because it is difficult to know why a unique HTTP request header will be given for the given form submission. Do you want to test for an HTTP header, which always should be present in your app's requests? Then you might want to consider implementing one, which will block and process all requests on any pages you mapped in any HanderMappings. Are you trying to test for an HTTP header that always any should be the page view of your app? Then you want to apply it, which works outside the context of Spring MVC.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -