Dear List,
a few month ago I asked a question how to deal with HTTP parameter names
like this:
map['key with spaces']
Back then I was told I could use ParameterNameAware.
Now I had some time to look at this. But, well, it does not work as
expected.
The javadoc of ParametersInterceptor states
Struts version? Because in 2.3.16 behaviour of that has changed.
2014/1/9 Christoph Nenning :
> Dear List,
>
>
> a few month ago I asked a question how to deal with HTTP parameter names
> like this:
>
> map['key with spaces']
>
> Back then I was told I could use ParameterNameAware.
>
> Now I had s
> Struts version? Because in 2.3.16 behaviour of that has changed.
>
It is 2.3.16.
So that means javadoc is outdated?
What options do I have?
Override ParametersInterceptor?
regards,
Christoph
This Email was scanned by Sophos Anti Virus
2014/1/9 Christoph Nenning :
>> Struts version? Because in 2.3.16 behaviour of that has changed.
>>
>
> It is 2.3.16.
> So that means javadoc is outdated?
Nope
> What options do I have?
> Override ParametersInterceptor?
Nope, just implement ParameterNameAware in your action and accept param name
> 2014/1/9 Christoph Nenning :
> >> Struts version? Because in 2.3.16 behaviour of that has changed.
> >>
> >
> > It is 2.3.16.
> > So that means javadoc is outdated?
>
> Nope
>
> > What options do I have?
> > Override ParametersInterceptor?
>
> Nope, just implement ParameterNameAware in your ac
2014/1/9 Christoph Nenning :
> The problem is this line:
>
>> return acceptableName(name) && (parameterNameAware == null ||
>> parameterNameAware.acceptableParameterName(name));
>
> when acceptableName(name) returns false,
> parameterNameAware.acceptableParameterName(name) is not called.
>
> Or
> > The problem is this line:
> >
> >> return acceptableName(name) && (parameterNameAware == null ||
> >> parameterNameAware.acceptableParameterName(name));
> >
> > when acceptableName(name) returns false,
> > parameterNameAware.acceptableParameterName(name) is not called.
> >
> > Or do get thi
2014/1/9 Christoph Nenning :
> 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)
So set 'acceptParams' with patterns that will accept params in your case
Regards
--
Ćukasz
+ 48 606
> > 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
9 matches
Mail list logo