struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-3262) improve wildcard to support regular expressions
Date Sun, 10 Jan 2016 11:08:47 GMT

     [ https://issues.apache.org/jira/browse/WW-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-3262:
------------------------------
    Fix Version/s:     (was: 3.0)
                   2.5.x

> improve wildcard to support regular expressions
> -----------------------------------------------
>
>                 Key: WW-3262
>                 URL: https://issues.apache.org/jira/browse/WW-3262
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.1.8
>            Reporter: musachy
>             Fix For: 2.5.x
>
>
> The regular expressions will follow the syntax of JAX-RS. They can be like {{\{PARAM_NAME\}}}
or {{\{PARAM_NAME:REGEX\}}}. For example:
> {code:xml}
>        <package name="regex" extends="struts-default" namespace="/">
> 		<action name="/{bio:.+}/test/{name}" class="org.apache.struts2.showcase.UITagExample">
> 			<result>/tags/ui/example.jsp</result>
> 		</action>
> 	</package>
> 	
> 	<package name="regex2" extends="struts-default" namespace="/superurl">
> 		<action name="/{bio:.+}/test/{name}" class="org.apache.struts2.showcase.UITagExample">
> 			<result>/tags/ui/example.jsp</result>
> 		</action>
> 		<action name="/{bio:.+}/test2/{name}" class="org.apache.struts2.showcase.UITagExample">
> 			<result>/tags/ui/{1}.jsp</result>
> 		</action>
> 	</package>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message