Piroumian, Konstantin wrote: >>>From: Gasper [mailto:[EMAIL PROTECTED]] >>> >>>Hello >>> >>>I'm building a site using cocoon 2.0 and jsp's for dynamic content In >>> >>my jsp >> >>>I'm trying to forward to a page using a simple <jsp:forward> tag but >>> >>this >> >>>causes an error below. I'm using tomcat 3.2.3 >>> >>>Does anybody know a solution? >>> >>Don't use forward or patch Tomcat (Or even better: migrate to XSP). For >>some reason Tomcat tries to cast ServletRequest object. >> >>>Is this a bug? >>> >>A feature of Tomcat :) >> > >I think it's not a feature nor a bug of Tomcat. It's the implementation of >HttpServletRequest in JSPEngine which cannot be casted to Tomcat's request. >Btw, you can use sitemap to forward your request to other resource, look at ><map:call />. The resource should be a Cocoon pipeline or resource. > >Konstantin > JSP actions (include <jsp:forward> action) is work from JSPReader (I'm try this) But maybe some encoding errors with use <jsp:forward> action :( Yury
> >>Vadim >> >>>Thanks >>> >>>Gasper >>> >><snip/> >> >>> Original exception : java.lang.ClassCastException: >>>org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest >>> at >>> >>org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatch >>erIm >> >>>pl.java:172) >>> at >>> >><snip/> >> >> >>--------------------------------------------------------------------- >>Please check that your question has not already been answered in the >>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> >> >>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>For additional commands, e-mail: <[EMAIL PROTECTED]> >> > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>