struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <>
Subject Re: S2 support for index action?
Date Mon, 20 Aug 2012 19:45:37 GMT
Are you familiar with index actions in HTTP servers? It's the page
that loads when a directory is specified. It's the default when no
specific resource is requested. That's different than the "default
action" in S2 which runs if no suitable action can be found.

Pretend there is a default package called "checkout" with "viewCart"
set to the default action. Here are some example actions in that
/checkout/addToCart.action = Adds item to cart
/checkout/viewCart.action = Views
/checkout/ = runs default action
/checkout/zzzzzz = runs default action too
/checkout/qwerty = runs default action too

As you can see, S2 interprets the default action to mean "I can't find
anything so let's execute the default." I am saying, we should allow a
more narrow configuration that says run the default action only if NO
specific resource in the package is being requested.


On Mon, Aug 20, 2012 at 2:39 PM, Lukasz Lenart <> wrote:
> 2012/8/20 Paul Benedict <>:
>> Lukasz,
>> The docs say <default-action-ref/> runs when any URI can't be found in
>> the package. I don't want much liberty. Just when the package matches
>> the URI exactly, have a default action. In regards to configuration,
>> this might be as easy as adding a new attribute to that element. What
>> do you think?
> Still don't get it :/ Maybe some example would help...
> Regards
> --
> Ɓukasz
> + 48 606 323 122
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message