Implement
ServletRequestAware and
ServletResponseAware. Keep in mind that this is considered a Bad Thing. First, it makes
unit testing more difficult because you will have to create and initialize request and response objects. Second, you are likely attempting circumvent the framework (which questions why you are using it to begin with) or you are implementing functionality that is already implemented in Struts or some other third party library (and you'd be better off reusing than rewriting).