Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Trim Fields in ActionForm class

Status
Not open for further replies.

jaybytez

Programmer
Jan 8, 2003
65
0
0
US
I am already extending DynaValidatorForm and DynaValidatorActionForm to utilize a new ActionMessages class I created and to make the validate method more robust. Is there a place that I can run through all the form values and trim them automatically before the fields are retrievable by the actual Action class?

Thanks,

-jay
 
Hi,

I think you have to use JavaScript which trim's the value for you before sending it to server Or else try to write a custom class which extends RequestProcessor where in you have the request object to tirm the vlaues.

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top