attractive, usable web applications


Richard's Blog - Design, coding and life in Japan

Richard

Blogs

Validation methods for non forms in stripes

Validations methods in stripes are so handy that I wanted to use them when not validating form criteria, but when checking a login etc which could be used on multiple actions in the controller, without throwing an exception but by forwarding you to an action bean of choice and showing an error message. I used a message instead of an error as errors do seem to be bound more to forms even global errors. Errors were also unavailable on a redirect resolution (but available to a forward resolution to a jsp - but I didn't want that).

Tags:

Clear Up Your Junk!

 Doing work for a bunch of different companies and covering their legacy systems even looking back at my own legacy systems, I see a ton of folders and files with "_bak" or the like added to the file name, or even "unused". This creates so much wasted time and effort trying to clean these up, find out why, is it still needed. That is exactly why we need efficient agile practices and version control in place. Test the code, put it in version control, create a test branch if necessary, but for goodness sake stop me having to deal with these stupid bloody things.
Tags:

Recent Blog Posts

Syndicate content