You might also try using the Restful2ActionMapper: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.html
Matt On 4/7/07, Matt Raible <[EMAIL PROTECTED]> wrote:
After some more research, it appears this solution *does* work for Tomcat, but not for Jetty. I tried the 6.1.2rc2 version of the maven-jetty-plugin and it still doesn't work. Matt On 4/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > I was able to change the StaticFilter to use an include instead of a > forward and this allows the rewriteFilter as well as the staticFilter > to work. However, I can't get SiteMesh to decorate the include (using > <dispatcher>INCLUDE</dispatcher>), so it's not really a solution. > > Matt > > On 4/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > On 4/6/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I am just diving into URL rewrite as I want my app to have RoR style pretty > > > URLS. > > > > > > I noticed there is an existing rule for users as below, > > > > > > <rule> > > > <from>^/user/(.*).html$</from> > > > <to type="forward">/editUser.html\?username=$1</to> > > > </rule> > > > > > > But when i type http://localhost:8080/user/tomcat.html , I get the > > > following, > > > > > > http://localhost:8080/user/tomcat.html > > > > > > Do I have no other option than to enabled <dispatched>FORWARD</dispatcher> > > > in struts mapping and disable all StaticFilter stuff? I was hoping with > > > Appfuse 2.0, it would have changed? > > > > I'll look into this now. > > > > Matt > > > > > > > > Sarat > > > -- > > > View this message in context: http://www.nabble.com/urlrewrite-problems-tf3538036s2369.html#a9876053 > > > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > http://raibledesigns.com > > > > > -- > http://raibledesigns.com > -- http://raibledesigns.com
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
