Edward
First: you are sending a POST request from your JSP to a servlet that only
supports GET requests.
However the first real problem lies with an error in your javascript code:
<script language="javascript">
goToServlet1()
{. . .
You need to declare the goToServlet1 function as a function. Ie:
<script language="javascript">
function goToServlet1()
{. . .
There is also an error in the form element:
<form myform method="post">
This should be:
<form name="myform" method="post">
Otherwise your code (eg document.myform) will not recognise myform.
Your servlet1 appears to be ok, but you call "/servlet1/servlet1" so I
assume your Webapp is also called servlet1???
Hope this helps,
Andrew
Professional Java Servlets 2.3
http://www.amazon.com/exec/obidos/ASIN/186100561X
http://www.amazon.co.uk/exec/obidos/ASIN/186100561X