I'm trying to use forms in my servlet code like this;
out.println("<FORM ACTION=\""+ BooksBought+"\"method = \"POST\">\n" +
"<INPUT TYPE=\"SUBMIT\"\n "+
" VALUE=\"Update Order\">\n" +
"</FORM>\n");
But I keep getting errors like BooksBought cannot be resolved to a variable. BooksBought is another servlet that works by itself so I know this is where the problem is. Please help.
web.xml
<servlet-mapping>
<servlet>
<servlet-name>BooksBought</servlet-name>
<servlet-class>BooksBought</servlet-class>
</servlet>
<servlet-name>BooksBought</servlet-name>
<url-pattern>BooksBought</url-pattern>
</servlet-mapping>