Do you have the URLRewrite filter mapped only to the REQUEST dispatcher, or does it also kick in on INCLUDEs? It sounds to me like the Stripes code is expected to only ever be called through an include, and in this case is not because something is intercepting in the middle and doing something else. Is that the case? And if so, is there any need to have the URLRewrite work on anything except requests coming in from outside the container?

-t

On Jul 2, 2008, at 1:41 PM, Farouk Alhassan wrote:

Hi guys, can someone help me here as i am stack.. a further debugging shows that is definetily null. This may also be due to the fact the there is
confusion on the value returned by the

String name = (String) getPageContext().getRequest() .getAttribute ('javax.servlet.include.servlet_path'); depending on whether its a include or a forward

http://www.caucho.com/resin-3.0/webapp/faq.xtp

From: [EMAIL PROTECTED]
To: [email protected]
Date: Wed, 2 Jul 2008 08:07:03 +0100
Subject: [Stripes-users] Forwarding to a jsp that uses stripes taglib from a filter

I have an intercepting filter that rewrites a url and forwards to the url (URLrewriter http://tuckey.org/urlrewrite/ )
 wrk lik
/contact will be retwritten as /contacts.jsp and forwarded to the jsp. However the jsp throws a very nice NPE. dont know. a little dig into the stripes
code reveals the execption on this line

// Assuming that the layout definition page is always included, the following line gets // the name of the page the tag is sitting on, as per Servlet 2.4 spec, page 65.
        String name = (String) getPageContext().getRequest()
                .getAttribute('javax.servlet.include.servlet_path');

what can i do, to get round it. I have attached the stack trace

> ---------------------------------------------------------------------- ---
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Get Started!

Get Hotmail on your Mobile! Try it Now!
---------------------------------------------------------------------- ---
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/ cca08_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to