parameter in HttpServlet.doGet

R

Raoul Markus

Hi there,

I have a html-form with from a
<FORM ENCTYPE='multipart/form-data'>
.....
<td>Fileupload</td><td><INPUT TYPE=FILE NAME=file SIZE=20 MAXLENGTH=20></td>
</tr>
<tr>
<td>Remarks</td><td><INPUT TYPE=TEXT NAME=remark SIZE=20 MAXLENGTH=20></td>
</tr>
....
and I want to have the value of "remark" in my HttpServlet.doGet with

public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
session = request.getSession();
tRemark = request.getParameter("remark"); // this is alway = null! wy?
....
The fileupload works & is ok, but no other parameter like "remark" is
transfered (always =null). Am I missing something here?

Any help apreciated,
Raoul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top