• 0

[JSP] Problem reading POST data in JSP


Question

Hello.

I'm a bit new to jsp and im facing the following problem:

After submitting the following form:


<form method="post" action="Jsp_confvirchq.jsp" ENCTYPE="multipart/form-data" name="virchq" onsubmit='VerifyForm(document.virchq)' >

<input type="file" name="upfile" >
<input type="hidden" name="virtype" value="virchq" />

<input type="submit" name="submit" value="submit">

</form>
[/CODE]

I try to read the hidden field value in JSP using

request.getParameter("virtype") and it is always set to null.. Any suggestions?

thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.