public void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOxception
{
commonService(request,
response);
}
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
commonService(request,
response);
}
But I guess the problem is that I have a FORM with 2
SELECT-TAGs in it,
because without the second one it works! - Why?
HTML-Code ...
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META HTTP-EQUIV="Expires" CONTENT="0">
<TITLE>POST - TEST</TITLE>
</HEAD>
<BODY>
<!-- works fine: FORM action="http://maeb:8080/servlet/picom.Warenkorb"
method=GET-->
<FORM action="http://maeb:8080/servlet/picom.Warenkorb"
method=POST>
<INPUT type=text name="pos_0" value="1"
maxlength=4 size=4>
<SELECT name="menge_0">
<OPTION
VALUE=0>Stk</OPTION>
<OPTION
VALUE=1>Pkt</OPTION>
<OPTION
VALUE=2>m²</OPTION>
</SELECT>
<BR>
<INPUT type=text name="pos_2" value="1"
maxlength=4 size=4>
<SELECT name="menge_2">
<OPTION
VALUE=0>Stk</OPTION>
<OPTION
VALUE=1>Pkt</OPTION>
<OPTION
VALUE=2>m²</OPTION>
</SELECT>
<BR>
<INPUT type=submit name="actualize" value="Formular aktualisieren">
</FORM>
</BODY>
</HTML>
Gabriel Wong wrote:
Have you overridden the doPost method? Or you only overrode service?
