struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Terrace <>
Subject Re: Default-class-ref for Convention plugin?
Date Sun, 02 Aug 2009 22:42:56 GMT
Damn, double post - I thought the other mail didn't get sent....
Dave, thanks I will take a look at that


On Sun, Aug 2, 2009 at 2:57 PM, Dave Newton <> wrote:

> Tom Terrace 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 anyone else had run
>> into
>> this problem, or if there was any other way to get around this without
>> reverting back to struts.xml.
> IIRC there's a bean defined in Convention's config file that defines the
> unknown handler--have you tried looking in to that?
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message