dcsimg
Upload file with JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   cliff_aristo
Posted On:   Tuesday, August 20, 2002 02:07 AM

I am a beginner in JSP and Java.

I want to upload image files (*.jpg, *.gif) with JSP.

1. Should I use enctype="multipart/form-data" attribute in the

tag ?

2. Does it act the same way as in PHP4 that copies the uploaded file to the server's TEMP directory ?




If it does, where do JSP save the file ?

Or should I use FileInputStream / FileOutputStream to upload the file manually ?

Re: Upload file with JSP

Posted By:   Eelco_Cramer  
Posted On:   Tuesday, August 20, 2002 04:15 AM

I think you can find the answer to your question here. The answer describes the solution for Servlets but in JSP is works the same way.
About | Sitemap | Contact