Unless you really *need* to bind your actions to Http* types, you should use RequestAware. This allows the same end goal indirectly through a Map.
Scott On Fri, Oct 24, 2008 at 7:10 AM, Nick Maunder | Oathouse <[EMAIL PROTECTED]>wrote: > Hi > > > > I'm fairly new to Struts 2 > > > > I'm looking for a way of unit testing Struts 2 action classes which are > (for > example) ServletRequestAware. > > > > Cactus (the old way I did it) does not appear suitable (or is it and I'm > missing something?) and HttpUnit does not seem to do the job either. I can > test all of the parts of the class which are not aware using JUnit, but I > really want to test the methods that are using the HttpServletRequest. > Ideas would be gratefully accepted. > > > > Cheers > > > > Nick > >