how to redirect error page to struts action

2009-01-27 Thread Tom Pop
Hello, I want to redirect 404 error page to struts action: This action works: http://localhost/resolver.action This web.xml configuration doesn't work: 404 /resolver.action Redirect to JSP page works: 404 /error.jsp However, it works in struts1, doesn't in s

Re: how to redirect error page to struts action

2009-01-27 Thread Nils-Helge Garli Hegvik
If you're using Struts 2, have you tried adding ERROR to the filter mapping? Nils-H On Tue, Jan 27, 2009 at 10:14 PM, Tom Pop wrote: > Hello, > > I want to redirect 404 error page to struts action: > > This action works: > http://localhost/resolver.action > > This web.xml configuration doesn't

Re: how to redirect error page to struts action

2009-01-27 Thread Tom Pop
Wow, it works! Thank you a lot - what does this setting mean? Tom > Původní zpráva > Od: Nils-Helge Garli Hegvik > Předmět: Re: how to redirect error page to struts action > Datum: 27.1.2009 22:18:52 > > If you

Re: how to redirect error page to struts action

2009-01-27 Thread Dave Newton
Tom Pop wrote: Wow, it works! Thank you a lot - what does this setting mean? http://www.onjava.com/pub/a/onjava/2004/02/11/jspcookbook.html http://docs.sun.com/app/docs/doc/819-3669/6n5sg7b0b Dave - To unsubscribe, e-mail: u

Re: how to redirect error page to struts action

2009-01-27 Thread ManiKanta G
> If you're using Struts 2, have you tried adding > > ERROR > > to the filter mapping? > to which filter mapping? FilterDispatcher's mapping? And could give sample snippet of web.xml using .action for http 404 error? ManiKanta

Re: how to redirect error page to struts action

2009-01-27 Thread ManiKanta G
> > to which filter mapping? FilterDispatcher's mapping? > And could give sample snippet of web.xml using .action for http 404 error? > Well I got it... yes, for FilterDispatcher's mapping only the dispatcher config should be there. Reason: If no types are specified, the default option is RE

RE: how to redirect error page to struts action

2009-01-27 Thread Seshagiri V
return e-mail and securely discard this message. -Original Message- From: ManiKanta G [mailto:go4m...@gmail.com] Sent: Wednesday, January 28, 2009 12:35 PM To: Struts Users Mailing List Subject: Re: how to redirect error page to struts action > > to which filter m

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks, Nuwan ManiKanta G wrote: to which filter mapping? FilterDispatcher's mapping? And could give sample snippet of web.xml using .action for http 404 error? Well I got it... yes, for Filt

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Ok, got it working, i was using the convention plugin. but i had to manually define the action which take care of the error in struts.xml Thanks, Nuwan Nuwan Chandrasoma wrote: Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks, Nuwan Mani