UrlRewrite and error pages

9 views
Skip to first unread message

Andrea

unread,
May 18, 2010, 9:48:47 AM5/18/10
to UrlRewrite
Hi,
I'm using UrlRewriteFilter on a web site on tomcat 5.5. I've written a
rule and some outbound rules. It works, but I've a problem: I've
defined an error page (using error-page tag on web.xml) named
notfound.jsp.
notfound.jsp has a dynamic navigation bar and it needs some of the
outbound rules. If I directly http://www.mysite.com/nofound.jsp filter
works, but if I call a non existent page, I'm redirected to
notfound.jsp and rules are not applied.
Don't filters (UrlRewrite or others) work on error pages ?

Thanks, Andrea

--
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlre...@googlegroups.com.
To unsubscribe from this group, send email to urlrewrite+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.

Avlesh Singh

unread,
May 18, 2010, 11:51:45 PM5/18/10
to urlre...@googlegroups.com
You seem to have configured the filter to listen only on dispatcher type request. Applying URF to forwards should make work. See if this mail (and thread) helps you - http://markmail.org/message/47cg3bkejgldq6vm

Cheers
Avlesh
http://webklipper.com

Andrea

unread,
May 19, 2010, 3:27:10 AM5/19/10
to UrlRewrite
> You seem to have configured the filter to listen only on dispatcher type
> request. Applying URF to forwards should make work. See if this mail (and
> thread) helps you -http://markmail.org/message/47cg3bkejgldq6vm
>
> Cheers
> Avleshhttp://webklipper.com

It works using <dispatcher>ERROR</dispatcher> , thanks !

Avlesh Singh

unread,
May 19, 2010, 3:30:40 AM5/19/10
to urlre...@googlegroups.com
Awesome!

Cheers
Avlesh
http://webklipper.com
Reply all
Reply to author
Forward
0 new messages