struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: mapping actions to names with periods
Date Thu, 30 Apr 2015 04:57:34 GMT
2015-04-29 22:37 GMT+02:00 Adam Brin <Adam.Brin@asu.edu>:
> We have a couple of cases where we need to map struts actions to names with periods in
them (e.g. /sitemap.xml ).  Is there any way to handle this?  We've disabled the struts.action.extension
so we don't need the .action at the end:
>
>
>     <constant name="struts.action.extension" value="," />
>
> But, it seems like struts will not map an action to @Action("sitemap.xml")

As far I remember I was doing like this:

<constant name="struts.action.extension" value=",xml" />

or REST plugin has some other mechanism but this can be overkill


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message