Hi
Go to http://www.oreilly.com and get the file upload package....
AFTER THAT :
from the doPost method...pass the HttpServletRequest request object to the
MultipartRequest constructor. Then you will have MultipartRequest mrq=new
MultipartRequest(request) ( the request object came from the
HttpServletRequest declared in the doGet method of your servlet)
>From then on mrq.getParameter("Doc_Version")...etc.....
regards,
Gautam
----- Original Message -----
From: Sudhir Kumar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 16, 1999 6:40 PM
Subject: Slightly Off-topic: File upload and form
> Hi all,
>
> Forgive me if this sounds off-topic.
> I am trying to write a servlet package for a document repository. I need
> to have the file-browse (for file upload) and the document details in
> the form together. I have done file upload separately. If I put these
> together in html, I will have a form and the file-browse menu. I am
> confused how to have file details (doc version, name etc.) and the
> file-browse option together in html. Also if this is possible, how can I
> get parameters as well as the ServletInputStream together in the servlet
> code?
>
> Could someone here help me out please.
>
> thanks,
>
> - Sudhir
>
>
> --
> /**
> * Sudhir Kumar
> * CyberCash India Pvt. Ltd. (O) 91-80-552 5660
> * 82/2A M.R Gardens, 3rd A Cross (H) 91-80-528 5975
> * 18th Main, 6th Block, Koramangala, Bangalore - 560025
> *
> * Any intelligent fool can make things bigger, more complex and
> * more violent. It takes a touch of genius-and a lot of courage
> * to move in the opposite direction.
> * -- Albert Einstein
> */
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html