Check out HtmlUnit or Watij .
They provide a mute browser engine that allows you to write tests by moving HTML pages, filling out forms, clicking buttons, etc.
Having said that, I try to use as little functionality as possible in my JSPs (or the like) and focus my testing on the core business logic objects and how to create beans for the JSP display. But final JSP testing is definitely a good idea.
Brian agnew
source share