• 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

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Posts

  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      503
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      126
    4. 4
      Steven P.
      88
    5. 5
      neufuse
      71
  • Tell a friend

    Love Neowin? Tell a friend!