Re: URLRewrite, maybe?
I was hoping to use the ConventionPlugin.. but having that in the struts.xml seems to work better, in this case, than having it in UrlRewrite. Thanks for the tip. 2010/9/20 Paweł Wielgus : > 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 : >> 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 > > -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: URLRewrite, maybe?
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 : > 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
Re: URLRewrite, maybe?
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
URLRewrite, maybe?
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? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org