struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthony <anthony...@gmail.com>
Subject Re: Mixing the convention plugin and struts.xml
Date Tue, 16 Feb 2010 20:13:18 GMT
Lukasz Lenart <lukasz.lenart <at> googlemail.com> writes:

> 
> 2010/2/16 Anthony So <anthonyjso <at> gmail.com>:
> > All this said, I am unclear as to how I would go about defining a
> > package node in struts.xml that would extend the convention-default
> > (which extends struts-default), and then define global-exceptions and
> > global-mappings nodes that apply to all of my classes within that
> > package.
> 
> Define new package in struts.xml with global exception mappings and
> setup constant as below
> 
> <constant name="struts.convention.default.parent.package"
> value="myDefaultPackage"/>
> 
> Regards


Thanks. I will give it a try.

It should also be noted that I tried to use the annotations I initially posted
in package-info.java and they did not take hold.

-anthony


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


Mime
View raw message