Hi Roger,
i'm using convention in all my actual projects,
i also use global result with no problems like this:
        <global-results>
                <result 
name="login-input">/WEB-INF/pages/login-input.jsp</result>
        </global-results>

Best greetings,
Paweł Wielgus.



2009/9/17 RogerV <roger.var...@googlemail.com>:
>
>
>
> Wes Wannemacher wrote:
>>
>> 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.
>>
>
> I've now amended my struts.xml (below) but the global exception mapping
> still doesn't work (stack trace in the browser) and the global result
> doesn't work either (leaves me on the same page) - so I'd be grateful for
> suggestions.
>
> As an aside, how widely are people using the convention-plugin? While
> googling when things go wrong, other than the convention-plugin doc, there
> seems to be very little about. Even the convention-plugin doc doesn't
> actually specify why I would want to change the package extension. Would I
> be better off forgetting the convention plugin and go back to the tried and
> tested xml configuration?
>
> Regards
>
> <struts>
>
>    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
>    <constant name="struts.devMode" value="true" />
>    <constant name="struts.convention.default.parent.package"
> value="default"/>
>
>        <package name="default" namespace="/" extends="struts-default">
>
>        <default-action-ref name="index" />
>
>        <global-results>
>        <result name="menu" type="redirectAction">menu</result>
>        </global-results>
>
>
>        <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-tp25395678p25489004.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to