struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Antwort: Re: Re: question about ParameterNameAware
Date Thu, 09 Jan 2014 14:25:09 GMT
> > There is && and () as well.
> >
> > In my case the results would look like this:
> >
> > false && (false || true)
> 
> Ah... sorry :( That was in old version (prior to 2.3.16)
> 

I guess it is quite confusing to have several versions to deal with :)


> So set 'acceptParams' with patterns that will accept params in your case
> 
> 


finally I got it running, thanks a lot !


This is what made it work:


        <package name="app-default" extends="struts-default">
        <interceptors>
            <interceptor-stack name="parentStack">
                <interceptor-ref name="defaultStack">
                    <param name="params.acceptParamNames">
\w+((\.\w+)|(\[\d+\])|(\(\d+\))|(\['(\w| )+'\])|(\('\w+'\)))*</param>
                </interceptor-ref>
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="parentStack"/>
    </package>


regrads,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message