Thank you for the info. The customHttpWrapper can be accessed like this: HttpServletRequest r = (HttpServletRequest)this.pageContext.getRequest(); ServletRequestWrapper rq = (ServletRequestWrapper)this.pageContext.getRequest(); CustomHttpWrapper wr = CustomHttpWrapper)rq.getRequest();
Nils-Helge Garli wrote: > > A HttpServletRequestWrapper has a getRequest() method that returns the > wrapped request. Without knowing the specifics of the order or > implementation of you wrapping object, this might be what you need. > > See > http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequestWrapper.html > > Nils-H > > On 9/20/07, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> I am developing a custom tag to retrieve some information and display it >> on >> jsp pages. >> >> My Tag class extends TagSupport, and on my doStartTag() method I retrieve >> the HttpRequest like: >> >> this.pageContext.getRequest(); >> >> Unfortunately, the result is a strutsrequestwrapper wrapped request. I >> have >> myself wrapped the HttpRequest in a CustomWrappedRequest. >> >> How can I get to my CustomWrappedRequest, where I have some handy methods >> already in place? I cannot cast from strutsrequestwrapper to my >> CustomWrappedRequest... >> >> Thank you for your answers. >> -- >> View this message in context: >> http://www.nabble.com/Accessing-HTTPWrappedRequest-on-a-custom-tag-tf4486821.html#a12794875 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Accessing-HTTPWrappedRequest-on-a-custom-tag-tf4486821.html#a12798655 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]