Hi All,
i'm using action configuration like this:

< action name="/conference-photo/{conferenceId}/{photoId}"
class="com.ppp.elsevier.struts.action.ConferencePhotoAction" >
        < result type="stream" >
            < param name="contentType" >image/jpeg< / param >
        < / result >
 < / action >

So in your case it woud be:
< action name="/{partnerId}/index"
class="com.ppp.elsevier.struts.action.ConferencePhotoAction" >
but if that rule have to work for every single action in your
application automaticaly than maybe URLRewrite will be better.

If You want to use struts based solution read more about it here:
http://struts.apache.org/2.2.1/docs/wildcard-mappings.html

Best greetings,
Paweł Wielgus.



2010/9/17 Matt Meola <matt.me...@gmail.com>:
> I have used URLRewrite with struts2, and it works quite well.
>
>
> On Fri, 2010-09-17 at 12:24 -0400, Greg Akins wrote:
>
>> I'm having a bit of a mental block on this one.
>>
>> Using Struts2, I want to redirect paths like
>> example.com/Partner55/index.action to example.com/index.action after
>> I've using a Filter to get the "Partner" value from the URL
>>
>> Can anyone help point me in the right direction?  Is URLRewrite the
>> correct place to start?
>>
>
>
> --
> Matt Meola
>
>

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

Reply via email to