Hi,

When you post a form, all input is sent to the server (including hidden fields and all 
other field data). The problem is, it's not in the form of regular request parameters. 
And you usually need to parse the byte stream sent by the browser yourself. 
Fortunately, you have several libraries that allow you to do that. I believe there's 
one with an O'Reilly book on JSP, can't recall correctly which one, and there are also 
several commercial ones. I use a GUI library for JSPs called TICL (from 
http://www.kobrix.com) that handles all that and you don't event notice that there's 
some special processing going one. I think Struts from jakarta has some classes to do 
the multipart/form-data parsing as well.

John

----- Original Message -----
From: Gading <[EMAIL PROTECTED]>
Date:         Fri, 24 May 2002 11:46:41 +0700
To: [EMAIL PROTECTED]
Subject:      2 parameter at one form


> Hi,
>
> Is it possible to upload file using <form method="post"
> enctype="multipart/form-data" target="_blank"> but it also pass other "normal" input 
>form
> (ie. <input type="hidden" value="12345" name ="id">?
> Thanks!
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to