This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Issue in invoking  Javascript function on JSP page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Issue in invoking  Javascript function on JSP page. " Watch "Issue in invoking  Javascript function on JSP page. " New topic
Author

Issue in invoking Javascript function on JSP page.

Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 80



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

Joined: Nov 08, 2001
Posts: 15376
    
    6
You have no form named Login and it is impossible for value to be null so that check is useless.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Issue in invoking Javascript function on JSP page.