Why Struts2 doesn't have string value trimming ?

2013-02-18 Thread Sreekanth S. Nair
Hi, Its common that user sometimes will enter string field values with spaces or just by mistake value as empty space, is there any way to make it as default behaviour of struts2 to trim ? Right now we are depending on an Interceptor which will take care of trimming value but this is making

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Dave Newton
Yep, sure enough--interesting. I think I'll start spinning through the docs and updating some stuff; that was my claim to fame at one point--need to earn those stripes. Dave On Mon, Feb 18, 2013 at 12:46 PM, Maurizio Cucchiara wrote: > Looking at the regex on the bottom of the page, I'd say:

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Maurizio Cucchiara
Looking at the regex on the bottom of the page, I'd say: it's no more allowed (http://goo.gl/oUlb6 click on the green button to test the regex pattern). But the regex could not represent the right behaviour, and I also didn't test it. Twitter :http://www.twitter.com/m_cucchiara G+ :ht

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Dave Newton
A brief look made me think [\d] was still allowed, but I also didn't play with it to actually find out. Dave On Mon, Feb 18, 2013 at 12:20 PM, Maurizio Cucchiara wrote: > There is a good chance that this notation went away after S2-009 ( > http://goo.gl/NydYr), though I could be wrong . > > Tw

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Maurizio Cucchiara
There is a good chance that this notation went away after S2-009 ( http://goo.gl/NydYr), though I could be wrong . Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara VisualizeMe: http:

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Dave Newton
The [0].foo notation should allow direct access to the nth item on the stack. I'm not aware of it intentionally going away, but I also don't use it regularly and would need to check. Dave On Mon, Feb 18, 2013 at 12:05 PM, Lukasz Lenart wrote: > 2013/2/18 Chris Mawata : > > Hi all, > >I am

Re: valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Lukasz Lenart
2013/2/18 Chris Mawata : > Hi all, >I am using Struts 2.3.4.1 and i noticed the notation > [n].parameterName to get a parameter of a given name > when the first ocurrance is not the one you want is > not working. I can't find any documentation that it was > removed. Can anyone point me to somet

valueStack [n].parameterName -- is it still there?

2013-02-18 Thread Chris Mawata
Hi all, I am using Struts 2.3.4.1 and i noticed the notation [n].parameterName to get a parameter of a given name when the first ocurrance is not the one you want is not working. I can't find any documentation that it was removed. Can anyone point me to something? I might not be searching by th