matches"

From Documentation
m
 
Line 1: Line 1:
 
{{ZESTEssentialsPageHeader}}
 
{{ZESTEssentialsPageHeader}}
 +
 +
=matches - String[] =
 +
 +
An array of matches. Each element of the array represents a group of the matched pattern. The first element represents the entire pattern. In fact, each element is the return value of [http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Matcher.html#group(int) java.util.regex.Matcher.group(int)].
 +
 +
This method is useful if you'd like to group the request's URI into several patterns. For example, the action could be defined as follows.
 +
 +
<source lang="xml">
 +
<action path="/([^]*)/.*" class="foo.${matches[1]}.Action">
 +
...
 +
</source>
  
 
=Version History=
 
=Version History=

Latest revision as of 08:53, 14 March 2011


matches - String[]

An array of matches. Each element of the array represents a group of the matched pattern. The first element represents the entire pattern. In fact, each element is the return value of java.util.regex.Matcher.group(int).

This method is useful if you'd like to group the request's URI into several patterns. For example, the action could be defined as follows.

<action path="/([^]*)/.*" class="foo.${matches[1]}.Action">
...

Version History

Last Update : 2011/03/14


Version Date Content
     



Last Update : 2011/03/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.