that is not supported in the convention plugin, the solution would be
to add an annotation at the package level for it, but the relation
between java packages and struts packagers is rather loose, so we have
been hesitant to add more annotations to it(there are a couple
already).

That being said, what you need to do is create a package in xml which
will be the parent package of your actions, and define the default ref
there. Then use @ParentPackage in your actions, or set
"struts.convention.default.parent.package" to the name of this
package.

musachy

On Sun, Aug 2, 2009 at 9:59 AM, Thomas Terrace<tterr...@gmail.com> wrote:
> Hi everyone,In my app I use a base action class to define some simple helper
> methods which are used throughout my jsps (i.e. getCurrentTime(),
> getCurrentUser(), etc.).  Before switching to the Convention plugin, I used
> <default-class-ref class="BaseAction"/> to ensure that these methods were
> available for all my "actionless" jsps. With the convention plugin it looks
> like these actionless results are hard coded to use ActionSupport.
>
> My initial work around was to modify the ConventionUnknownHandler class and
> add in a constant - "struts.convention.default.class.ref" which is used in
> place of the ActionSupport reference. This works pretty well but I'd rather
> not have to use a custom jar, so I was wondering if there was any other way
> to get around this without reverting back to struts.xml.
>
> Thanks for your help,
> -Tom
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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

Reply via email to