File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to validate html:text without usind validate framework of struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to validate html:text without usind validate framework of struts" Watch "how to validate html:text without usind validate framework of struts" New topic
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: 443
    
    1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to validate html:text without usind validate framework of struts