| Author |
how to validate html:text without usind validate framework of struts
|
Bonny Sen
Greenhorn
Joined: May 09, 2006
Posts: 26
|
|
Hello friends, Can anyone help me and tell how to validate html:text without usind validate framework of struts. I would like to use java script and validate the text box from the client side using java script.
|
With Love, Bonny
"Life is like an ice-cream, Enjoy it before it melts..."
|
 |
vijay saraf
Ranch Hand
Joined: Jan 08, 2005
Posts: 141
|
|
Bonny, you are free to do any thing in javascript with struts. in fact some times i feel the validator facility provided by struts is not enough & complete ().The point to use javascript is that client side validation saves server resources. but you may get stucked if your application supports multiple languages. Some more reason may be there...... Vijay.
|
Thanks
Vijay Saraf.
|
 |
Rajkamal Pillai
Ranch Hand
Joined: Mar 02, 2005
Posts: 436
|
|
Bonny, I dont see any difference if you are going to validate html:text using client side Javascript. Becasue by the time the browser renders the page the <html:text> element becomes an <input> element. If the element has an ID or name you can always access it using Javascript and write code to do whatever kind of validation you require. Cheers, Rajkamal.
|
 |
 |
|
|
subject: how to validate html:text without usind validate framework of struts
|
|
|