You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Al Sutton <al...@alsutton.com> on 2008/11/05 20:15:10 UTC
Sanity check on REST plugin
Is there a reason why using an ID of the form x.y blows out the REST
plugin in 2.1.2?
If I use the URL;
http://localhost/AndroidPhoneApplications/packages/!veecheck?id=org.blah.com
everything works, however if I use;
http://localhost/AndroidPhoneApplications/packages/org.blah.com!veecheck
I get a 404.
If it's a bug I'll have a look at hacking together a fix.
Al.
--
Al Sutton
W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Sanity check on REST plugin
Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Al Sutton wrote:
> Is there a reason why using an ID of the form x.y blows out the REST
> plugin in 2.1.2?
>
> If I use the URL;
>
> http://localhost/AndroidPhoneApplications/packages/!veecheck?id=org.blah.com
>
>
> everything works, however if I use;
>
> http://localhost/AndroidPhoneApplications/packages/org.blah.com!veecheck
>
> I get a 404.
I'm not sure if you've got wildcards in their with that ! so I could be
misinterpreting.
I expect the first GET would map to the show method of
VeecheckController with id = "org.blah.com"
I expect the second GET would map to the show method of
PackagesController with id = "org.blah.com!veecheck"
If the second is supposed to map to VeecheckController with id
="org.blah.com" then it should be:
GET http://localhost/AndroidPhoneApplications/packages/veecheck/org.blah.com
Unless you're doing something with wildcards with (!)?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org