wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Consider Paul's rocket mass heater.
 
subject: Issue in invoking Javascript function on JSP page.
 
Similar Threads
include directive doesn't work
HTTP Status 404 Error - error while calling a servlet from a jsp
Handling multiple form data in struts2
Not able to set attribute in JSP
opening a word document on localsystem in internet explorer