The conventions plugin has a variable (constant) that you have to set so that your conventions actions extend a package other than conventions-default... It is toward the bottom of the page of the conventions plugin docs.
-Wes On Fri, Sep 11, 2009 at 2:22 AM, RogerV <roger.var...@googlemail.com> wrote: > > Hi > > My project is using Struts 2.1.6 based on blank.war with the convention > plugin enabled. I'm having a problem getting global exception catching to > work - I'm still getting the stack trace displayed in the browser. Do I need > to add anything that would not be available "out of the box" having started > with importing blank.war into my ide. I've attached my struts.xml below. > > Regards > > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE struts PUBLIC > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd"> > > <struts> > > <constant name="struts.enable.DynamicMethodInvocation" value="false" /> > <constant name="struts.devMode" value="true" /> > > <package name="default" namespace="/" extends="struts-default"> > > <default-action-ref name="index" /> > > <global-exception-mappings> > <exception-mapping > exception="javax.persistence.OptimisticLockException" result="input"/> > <exception-mapping > exception="org.eclipse.persistemce.exceptions.OptimisticLockException" > result="input"/> > </global-exception-mappings> > > > > > > <action name="index"> > <result type="redirectAction"> > menu > </result> > </action> > </package> > > <!-- Add packages here --> > > </struts> > -- > View this message in context: > http://www.nabble.com/Global-Exceptions-with-Convention-Plugin-tp25395678p25395678.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org