You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alvin Singh (JIRA)" <ji...@apache.org> on 2008/09/30 13:03:24 UTC
[jira] Created: (WW-2820) REST Plugin Issues/Improvements
REST Plugin Issues/Improvements
-------------------------------
Key: WW-2820
URL: https://issues.apache.org/struts/browse/WW-2820
Project: Struts 2
Issue Type: Improvement
Components: Plugin - REST
Affects Versions: 2.1.2
Reporter: Alvin Singh
I didn't know whether I should create separate issues for each (some are not issues but just require some doco). Issues described here - http://www.nabble.com/forum/ViewPost.jtp?post=19230238&framed=y -
- If you want a blank namespace - do not use "/" as your namespace in your struts xml's or in namespace notation. Inconsistent behavior starts to occur.
- If you want a specific namespace - e.g. /v1 - you must ensure your namespace has prefixed slash i.e. "/v1" otherwise it will not work
- If you are using tiles or even jsp (I think) and have the same name folder as a namespace your rest urls will not execute the action
- Your actions/controllers must be suffixed with 'Controller' or the action mapper will not pick them up (wiki says it is optional)
- If you have a action/controller name the same as the package name its in - strange things happen (can't find action mapping etc.). e.g package name is au.com.test.rest.space, class in this package with name SpaceController will not work correctly - SpacesController will.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2820) REST Plugin Issues/Improvements
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-2820:
-----------------------------
Fix Version/s: Future
> REST Plugin Issues/Improvements
> -------------------------------
>
> Key: WW-2820
> URL: https://issues.apache.org/struts/browse/WW-2820
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - REST
> Affects Versions: 2.1.2
> Reporter: Alvin Singh
> Fix For: Future
>
>
> I didn't know whether I should create separate issues for each (some are not issues but just require some doco). Issues described here - http://www.nabble.com/forum/ViewPost.jtp?post=19230238&framed=y -
> - If you want a blank namespace - do not use "/" as your namespace in your struts xml's or in namespace notation. Inconsistent behavior starts to occur.
> - If you want a specific namespace - e.g. /v1 - you must ensure your namespace has prefixed slash i.e. "/v1" otherwise it will not work
> - If you are using tiles or even jsp (I think) and have the same name folder as a namespace your rest urls will not execute the action
> - Your actions/controllers must be suffixed with 'Controller' or the action mapper will not pick them up (wiki says it is optional)
> - If you have a action/controller name the same as the package name its in - strange things happen (can't find action mapping etc.). e.g package name is au.com.test.rest.space, class in this package with name SpaceController will not work correctly - SpacesController will.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.