David , don't think me in wrong way , You helped me a lot in answering my struts2 queries .
Actually what i am asking is that , six months earlier i used a simple js file with my jsp page , which provided me with excellent validation suppourt .
Unfortunately i forgot its name now . so trying to recollect its name if somebody gives me clue.
With minimum googling, I found this JS which you can use. You can find similar ready to use JS for yourself (if of course this one doesn't fits your requirement )...