Posted By:
Junaid_Mohammad
Posted On:
Tuesday, December 25, 2001 08:11 PM
I want to call a servlet called = "http://localhost:8080/servlet/contactinfoServlet", but i am getting the following error 405 GET not supported in my code i have done the following function processForm1() { form1 = document.forms["formOne"] if(form1.Customername.value =="") alert("You must fill in your Name!") else if( (form1.Customeraddress.value =="") && (form1.Customerpostcode.value =="") ) alert("You must fill in your full address, including postcode!") else if(form1.Customerpo
More>>
I want to call a servlet called = "http://localhost:8080/servlet/contactinfoServlet", but i am getting the following error
405 GET not supported
in my code i have done the following
function processForm1()
{
form1 = document.forms["formOne"]
if(form1.Customername.value =="")
alert("You must fill in your Name!")
else if( (form1.Customeraddress.value =="") && (form1.Customerpostcode.value =="") )
alert("You must fill in your full address, including postcode!")
else if(form1.Customerpostcode.value =="")
alert("You must fill in your postcode!")
else if( (form1.Customertelephoneno.value =="") && (form1.Customermobileno.value =="") && (form1.Customeremail.value ==""))
alert("You must fill in either your telephone, mobile or email address!")
else
location.href = "http://localhost:8080/servlet/contactinfoServlet"
}
.........
.........
<<Less