Hallo,
ich habe ein einfaches HttpServlet in Eclipse3.1 programmiert. Nutze Tomcat 5.0 und möchte nur die Parameter im Servlet (doPost) abfragen. Doch ich bekomme überhaupt keine Parameter. Hat jemand ne Ahnung woran das liegen kann.
<b>Index.jsp</b>
-----------
< form method="post" action="/CodeGen" enctype="multipart/form-data"
< input type="text" name="source" />
< input type="file" name="target"/>
< input type="SUBMIT" name="generate" value="Start"/>
< /form >
-->
<b>Servlet</b>
--------
public class CodeGenHttpServlet extends HttpServlet {
private static final long serialVersionUID = 3258416140102743857L;
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
Map lMap = req.getParameterMap();
System.out.println("Here");
}
}
Danke im Voraus!
Grüße
Andreas
ich habe ein einfaches HttpServlet in Eclipse3.1 programmiert. Nutze Tomcat 5.0 und möchte nur die Parameter im Servlet (doPost) abfragen. Doch ich bekomme überhaupt keine Parameter. Hat jemand ne Ahnung woran das liegen kann.
<b>Index.jsp</b>
-----------
< form method="post" action="/CodeGen" enctype="multipart/form-data"
< input type="text" name="source" />
< input type="file" name="target"/>
< input type="SUBMIT" name="generate" value="Start"/>
< /form >
-->
<b>Servlet</b>
--------
public class CodeGenHttpServlet extends HttpServlet {
private static final long serialVersionUID = 3258416140102743857L;
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
Map lMap = req.getParameterMap();
System.out.println("Here");
}
}
Danke im Voraus!
Grüße
Andreas
Comment