I've had problems in some frameworks confusing the parser using operators this way. Since java maps allow any object as the key, such as Number or it's sub-classes, you get into issues where the page tech (jsp,js,various taglibs,et al) makes Map[key-1] into Map[1-1] then into Map[0]. I basically stay away from arithmetic operators unless I am performing math for that reason. I think what is there is reasonable for the wider audience and that providing the ability to specify your own is a reasonable solution.

John (imho)

On 1/28/2020 6:17 AM, Lukasz Lenart wrote:
pon., 27 sty 2020 o 16:59 Ing. Andrea Vettori<a.vett...@b2bires.com>
napisał(a):
On 26 Jan 2020, at 12:26, Lukasz Lenart<lukaszlen...@apache.org>  wrote:


So maybe relaxing the patterns is a good idea but as till now nobody
reported any problems with them, we decided to left them as is.
Thank you for the clarification.
If you’re going to discuss again this choice in the future, I think that 
allowing all characters that are safe on http post data or urls would be nice 
(that was the reason we choose to use the minus instead of other characters in 
our project, because it would work in post and urls).
Feel free to open a ticket with your example pattern and we can work
on that in Struts 2.6


Regards

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

Reply via email to