Hi,
In my
JSP's, I first want to make surethat all inputs are entered by user before sending it to the
Servlet. I tried using the code :
I tried putting the script after <html> or before <html>, but I get the same error - Object doesn't support this property at line referring DOCtype & other at <option> Dermatologist</option> line. If I don't add any script & do all validations checking in the servlet only, thne its working fine. But I don't want to show error on other page & then redirect here. I want to solve any input error here only & then call the servlet with pure data.
I used a differnt method to do all validation checking in other jsp by setting action="other.jsp". At presnet that jsp is only :
I had used <script>alert("Enter ID"); </script> instead of out.println
Here also I get :
that refers to the <% tag after </h1>
Can anyone help me out, where am I going wrong. I would prefer chcking for input in the same file only. Please help me out with the above problems.
Thanks