On 4/8/07, sarat.pediredla <[EMAIL PROTECTED]> wrote:
Matt,
I tried using the <action> example from the URL below but I keep getting
errors that it cannot find /{action}.html.
Do I need to do anything else in appfuse to enable the restful2actionmapper?
I don't know - you're pretty much on your own here as I wasn't able to
get it working in the 10 minutes I tried.
It looks like there may be a bug:
https://issues.apache.org/struts/browse/WW-1706
You also might refer to the following issue. We do hope to get this
working eventually, but it's currently not a priority.
http://issues.appfuse.org/browse/APF-559
Matt
mraible wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/urlrewrite-problems-tf3538036s2369.html#a9890801
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]