struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: Referencing request parameters in struts tags.
Date Tue, 15 Nov 2016 08:11:28 GMT
Sorry, back on this again :(

Can we check this one?  Pops for me.

login.action?error=<script type="text/javascript">alert("ok");</script>

${parameters.get('error')}
${parameters.get('error').value}


Where does the ${} reference stuff come from?

On 14 November 2016 at 20:47, Aleksandr Mashchenko <amashchenko@apache.org>
wrote:

> Now I've noticed the property accessors. :)
>
> We should probably indicate somewhere that now if there is no parameters
> the "#parameters" is not an empty collection and that
> "#parameters.contains('error')" must be used instead of
> "#parameters.containsKey('error')".
>
> ---
> Regards,
> Aleksandr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

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