There's nothing specific in Struts, but a filter does the trick nicely:

http://javawebparts.sourceforge.net/javadocs/index.html

That will actually do *all* incoming requests, but that's probably what you want anyway. You can limit it by path too if that's helpful.

Frank

Laurie Harper wrote:
Abhinav Bhatnagar wrote:

Hi All,

Is there any way in struts to automatically trim the string before
setting them in the form object?

We can do it thru javascript but just want to know if Struts has any
feature for this.


I don't think so. You could define a custom RequestProcessor to do this for you, though -- or, in 1.3, the new request chain stuff. That way, you can make the trim()ing logic as simple or as complex as you like.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to