How do i upload a file from client side to server side using servlet and jsp this will happen when I click upload button on web-page?

Questions by Beena   answers by Beena

Showing Answers 1 - 4 of 4 Answers

rameshbabukm

  • May 26th, 2007
 

If u r using jsp then

ur form should look  like this

<..form name="frmAddElement" method="post" enctype="multipart/form-data">

and a file upload tag

<..input name="fileupload" type="file" value="aaa"/>

and from the java side use the any open source file reader like

import org.apache.commons.fileupload.*;

which will read the file from http request content

Regards
Ramesh

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions