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 <davelnew...@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
>

Reply via email to