struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Why Struts2 doesn't have string value trimming ?
Date Tue, 19 Feb 2013 12:57:14 GMT
On Tue, Feb 19, 2013 at 1:05 AM, Sreekanth S. Nair wrote:

> is there any way to make it as default behaviour of struts2 to trim ?
>

AFAIK, no. I've solved this the same way you have.


> [Our trimming interceptor causes the upload interceptor to not work]
>

A bit more information might be helpful, like what does "not work properly"
mean?


> If interceptor is the only option can anyone tell which will be the safest
> way to achieve this without disturbing other struts default filter like
> fileUpload.
>

# Put trimming after uploading
# Only trim non-file form fields

Dave

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