You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ryan Wong (JIRA)" <ji...@apache.org> on 2009/01/07 04:45:37 UTC
[jira] Issue Comment Edited: (WW-2842) Wildcards in namespace maps
url values to controller parameters
[ https://issues.apache.org/struts/browse/WW-2842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45395#action_45395 ]
lazing edited comment on WW-2842 at 1/6/09 7:45 PM:
-------------------------------------------------------
It block me for further dev...
currently I am trying to fix it myself..
I will post here if any improvement.
more: This request is just to make conversation plugin work together with REST
was (Author: lazing):
It block me for further dev...
currently I am trying to fix it myself..
I will post here if any improvement.
> Wildcards in namespace maps url values to controller parameters
> ---------------------------------------------------------------
>
> Key: WW-2842
> URL: https://issues.apache.org/struts/browse/WW-2842
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - REST
> Reporter: Leonard Broman
> Priority: Minor
> Fix For: Future
>
>
> Implement wildcard functionality in namespace declaration to be able to map URL values to controller properties, or more appropriately, push them to the value stack.
> This has been discussed lightly on the user mailing list and there is a short notice on the jroller blog by Don Brown http://www.jroller.com/mrdon/entry/struts_2_rest_todos .
> Simple example:
> We may want to map a nice and clean url: GET /report/lbroman/2008/january
> To a ReportController where the values lbroman, 2008, january will be set on properties on the Controller.
> Using the @Namespace annotation, a namespace declaration like "/report/{user}/{year}/{month}" will use the wildcard mapping to map "lbroman", "2008", "january" to setUser(), setYear() and setMonth() respectively.
> Note that this overrides the default setId() for the first parameter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.