You use return so that if the form is not valid, the form does not submit (returns false). You use this as an argument to the validateLoginForm function because it takes the form itself as a parameter. [ May 18, 2006: Message edited by: Gregg Bolinger ]
i am getting alert msg for 'password is required'. But i am not getting alert msg for 'password minlength'. But if i have specified <html:errors/> in the jsp page, i am getting proper error message in the form of text. Why this problem occurs?
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop