hujd_cn wrote:
> it is quite straight to test java classes with JUnit by writing
> input data to methods and asserting output. but how can i generate
> input data to JSP and then check validation of output from web server?

Well, most importantly, make the JSPs contains as few logic as possible. Put
as much of the logic as possible into POJOs and/or taglibs, and test those
the usual way.

If you really need to test the JSPs, you can use jWebUnit with ServletUnit
as the test container (the latter comes with httpUnit), or Jetty as an
embedded webserver.

I'd only decide to use cactus if I really needed to test inside the
production server; cactus is powerfull, but also the most complex and
slowest solution.

Hope this helps, Ilja


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=102217701


Yahoo! Groups Links

Reply via email to