Difference between revisions of "Talk:How to add validation logic to HttpServletRequest"

From OWASP
Jump to: navigation, search
(Status)
(General Discussion)
 
Line 6: Line 6:
  
 
==General Discussion==
 
==General Discussion==
 +
I'm wondering if the ValidatingHttpRequest code provided was tested, or provided more as pseudo-code.
 +
The issue I'm having is that validate throws ValidationException. Hence getParameter() and all other overridden methods that call validate() will need to catch the exception (can't be thrown). What can be done with that exception? Also, when the exception is thrown, what should be returned?

Latest revision as of 15:36, 29 January 2009

Status

Reviewed and released Stephendv 09:27, 14 January 2008 (EST)

Reviewers

  • Stephen de Vries

General Discussion

I'm wondering if the ValidatingHttpRequest code provided was tested, or provided more as pseudo-code. The issue I'm having is that validate throws ValidationException. Hence getParameter() and all other overridden methods that call validate() will need to catch the exception (can't be thrown). What can be done with that exception? Also, when the exception is thrown, what should be returned?