Hi Jeromy,

I've just wrote the generic ExtendedActionMapper ;)

Which is the best way to share stuff like this?

V

On Wed, Jul 2, 2008 at 3:33 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:

> Vanja Petreski wrote:
>
>> Hello,
>>
>> Is it possible to solve the following problem in some other way then
>> implementing the custom ActionMapper (Struts 2.0.11.1):
>>
>> 1) struts.action.extension=html
>>
>> 2) I am using the rome rss s2 plugin and have the special namespace for
>> feeds: /feeds
>>
>> 3) I am accessing feed f1 (for example) via .../feeds/f1.html, but I want
>> this: .../feeds/f1.xml
>>
>> 4) If I change 1) to struts.action.extension=html, xml then I can access
>> via
>> both xml and html, but I don't want that
>>
>> 5) I want to access all my action that aren't in the feed namespace ONLY
>> via
>> default html action extension, but actions in the package with the feed
>> namespace ONLY with xml extension
>>
>> Thanx,
>> Vanja
>>
>>
>>
>
> No there's no built-in solution.
> On the plus side, just because users are able to access /index.xml instead
> of /index.html, it's unlikely they ever would as you never provide links
> like that. This is one of those cases where it's annoying to you, but users
> will rarely notice and if they do they there is no consequence.
>
> A quick solution is a URL filter. eg. in your config for mod_jk so your
> container only sees .xml requests at /feeds/*
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to