I don't know if there's a better way to do it, but we solved it like this in struts.xml:
<global-results> <result name="dataAccessFailure">/WEB-INF/pages/dataAccessFailure.jsp</result> <result name="accessDeniedFailure">/403.jsp</result> <result name="pageNotFound">/404.jsp</result> </global-results> <global-exception-mappings> <exception-mapping exception="org.springframework.dao.DataAccessException" result="dataAccessFailure"/> <exception-mapping exception="org.springframework.security.AccessDeniedException" result="accessDeniedFailure"/> </global-exception-mappings> I'd be glad to know if there's a better way of doing it. 2010/5/17 Matt Raible <m...@raibledesigns.com> > You could try adding <dispatcher>ERROR</dispatcher> to your Struts filters. > > On Mon, May 17, 2010 at 2:35 PM, tibor strausz <t...@dds.nl> wrote: > > i have the default one from appfuse > > there is a displaytag tag > > > > when i remove the code the page is shown. > > > > but what i don't understand is when i go directly to the jsp all is fine. > > somehow the struts tags do not get processed > > > > tibi > > > > > > > > Matt Raible wrote: > >> Do you have Struts JSP tags in your 403 page? > >> > >> On Mon, May 17, 2010 at 9:00 AM, <t...@dds.nl> wrote: > >> > >>> Hi > >>> > >>> when entering a url which is, according to my role, not allowed > >>> (http://localhost:8080/cms/contents.html) i'm revered to the 403.jsp > page > >>> but i get an error: > >>> > >>> Oeps! > >>> > >>> The Struts dispatcher cannot be found. This is usually caused by using > >>> Struts tags without the associated filter. Struts tags are only usable > when > >>> the request has passed through its servlet filter, which initializes > the > >>> Struts dispatcher needed for this tag. - [unknown location] > >>> at > org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60) > >>> ... > >>> > >>> > >>> when i go directly to the 403.jsp file it works fine. > >>> (localhost:8080/403.jsp) > >>> > >>> > >>> what can be the problem? > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > >>> For additional commands, e-mail: users-h...@appfuse.dev.java.net > >>> > >>> > >>> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > >> For additional commands, e-mail: users-h...@appfuse.dev.java.net > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >