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 Why Struts2 doesn't have string value trimming ?
Date Tue, 19 Feb 2013 06:05:40 GMT
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 problem with fileUpload interceptor to
not work properly.

Is there any alternative way to achieve this or is there any possibility of
adding this feature to struts2 ?

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.

-- 
Thanks & Regards
Srikanth

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