Why you should validate input January 17, 2008
Posted by Phill in Other Stuff.Tags: dreamhost, validation
add a comment
If there was ever a lesson as to why you should always validate input, this is it.
The reason I am re-posting this (I think it’s been doing the rounds on the internet) is because I think every software developer should read it and take it to heart – the more people know about it, the less chance there is of this happening again.
Oh, and a (belated) happy new year to you all!
Note to self… August 31, 2007
Posted by Phill in Struts.Tags: required, Struts, validation
add a comment
In Struts validation, if (for example) you want a field to be checked against a regex, and it must be specified, you need to use “required” as well as “mask”:
<field property="fieldName" depends="required,mask">
If you just use “mask” – like I did – the field won’t be required.
Yes, I know that was a stupid mistake, OK?