struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth S. Nair" <sreekanth.n...@egovernments.org>
Subject Re: Why Struts2 doesn't have string value trimming ?
Date Wed, 20 Feb 2013 06:22:22 GMT
Hi Dave,
             The interceptor is before fileUpload interceptor only. File
uploading itself is not working in the case if i put trim interceptor after
fileUpload. Can you please share your trimming interceptor code so that i
can fix my code.

Why can't struts2 itself can handle it thats what my question :)
-- 
Thanks & Regards
Srikanth


On Tue, Feb 19, 2013 at 6:27 PM, Dave Newton <davelnewton@gmail.com> wrote:

> 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