It is not a bug, it is a feature! /friday

musachy

On Fri, Mar 13, 2009 at 5:56 PM, Greg Lindholm <glindh...@yahoo.com> wrote:
>
>
>
> dchicks wrote:
>>
>> We recently discovered, quite by accident, that we can cause our app
>> built on struts2 to NOT display ".action" on any of the URL's.  I'd
>> simply like to find out if this is an intended feature or a possible
>> defect?  The difference is in how we start off our interaction in the
>> browser.  If we use a URL like:
>>
>>     http://localhost:8080/mysite/login.action
>>
>> then all of the URL's in the site appear to be suffixed with ".action".
>> If, on the other hand, we use:
>>
>>     http://localhost:8080/mysite/login
>>
>> then none of the URL's are suffixed with ".action".
>>
>> We're using Struts 2.1.6 with Tiles 2.0.4 - recently upgraded from some
>> prior versions.  We noticed this because our QE department's automated
>> testing software freaked out when it couldn't match URL's as it expected.
>>
>>
>
> There was a change sometime between Struts 2.0.11 and Struts 2.1.6 where the
> default list of action extensions (struts.action.extension) changed from
> just 'action' to 'action' plus "" (no extension).  This will cause requests
> with no extension to be treated as an action.
>
> The old (2.0.11) struts default.properties had:
>    struts.action.extension=action
>
> The new (2.1.6) has:
>    struts.action.extension=action,,
>
> You can explicitly set the extension back to just 'action' then It works
> like it used to.
>
> In struts.xml I added: <constant name="struts.action.extension"
> value="action" />
>
>
> --
> View this message in context: 
> http://www.nabble.com/To-.action-or-not-to-.action.-tp22503987p22504765.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
>
>



-- 
"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