Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in invoking Javascript function on JSP page.

 
Yuta Lolap
Ranch Hand
Posts: 86
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Registration.jsp


I have tow files login.jsp and registration. I am applying basic validation to username and password text fields. but it doesn't seem to trigger. Please can anyone tell me why? I tried just showing an alert("hello world"); on the button click it worked. Then i deleted the alert and gave validation for username and password. Doesn't seem to work.

Please help.

I also tried putting the function call return validate on the onSubmit attribute of the form tag. Didn't work either. I am running this in the browser of the eclipse. When i run this in Firefox it days the port no 6000 is not used for web surfing (excuse the terminology).

Please help!
Thanks in advance!
Yuta Lolap.



 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have no form named Login and it is impossible for value to be null so that check is useless.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic