Jump to content



Photo

[JSP] Problem reading POST data in JSP

jsp java html

  • Please log in to reply
1 reply to this topic

#1 eliokh

eliokh

    Neowinian

  • Joined: 01-July 10
  • Location: Lebanon
  • OS: Win7/XP

Posted 04 December 2012 - 16:22

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>

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


#2 OP eliokh

eliokh

    Neowinian

  • Joined: 01-July 10
  • Location: Lebanon
  • OS: Win7/XP

Posted 10 December 2012 - 15:15

any body?



Click here to login or here to register to remove this ad, it's free!