On Tuesday 05 May 2009 02:33:14 pm Wes Wannemacher wrote:
> Unless anyone has anything they want to commit first...
> 
> I'll give it a couple of hours while I read the docs on releasing.

I don't want to hold the release, but I noticed this:

Enabling this in struts.xml makes it possible to have "named-variable" 
wildcard-mappings for namespaces:

        <bean type="com.opensymphony.xwork2.util.PatternMatcher" 
name="namedVariablePatternMatcher" 
class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/>
        <constant name="struts.patternMatcher" 
value="namedVariablePatternMatcher"/>

You can have namespaces like:
        <package name="mypackage" extends="struts-default" 
namespace="/myns/{request_locale}">

And it will set the request-locale using the i18n-interceptor to whatever is 
set in {request_locale}. You have to place the i18n-interceptor *after* the 
params-interceptor, which requires overriding the default interceptor-stack.

This is very cool and makes it possible to easily switch locale without having 
to code for it and keeping your struts2-config consistent. It could, however, 
benefit from better documentation, it's pretty hard finding out that this is 
possible asking Mr. Google. Maybe mentioning it in the "wildcard 
mapping"-section would be a good place?

-- 
Andreas Joseph Krogh <andr...@officenet.no>
Senior Software Developer / CEO
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Rosenholmveien 25       | know how to do a thing and to watch         |
1414 TrollÄsen          | somebody else doing it wrong, without       |
NORWAY                  | comment.                                    |
                        |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to