Re: Upload Images in JSP



"lynch_susan" <lynch_susan@xxxxxxxx> wrote in message
news:1143740471.337163.107080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Newbie,

I have to create a jsp page where i can upload some gif images to a
server location. How can i do that?

Create a jsp page where you can choose the file. Then let the jsp post the
data to a servlet which handles the upload of the selected file.

I've had a quick look on Google for "upload servlet" and found this... It
might be very interesting -
http://www.jspwiki.org/wiki/MakingAnUploadServlet

Best regards,

JC
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks


.



Relevant Pages

  • Need to convert MS Office files to pdf on the server itself.
    ... I'm writing a web app using JSP with Tomcat5.5 as server.Users upload ... MS offce files on the server and when the manager accepts then I want ... the pdf creator is called but no output is generated. ...
    (comp.lang.java.programmer)
  • File upload & form data
    ... I have the need to upload one file to several ... from the jsp: ... List items = upload.parseRequest; ... FileItem item = iter.next; ...
    (comp.lang.java.programmer)
  • Re: Upload Images in JSP
    ... I have to create a jsp page where i can upload some gif images to a ... server location. ...
    (comp.lang.java.help)
  • JSP - saving textfield values before loading intermediate page
    ... We have a JSP page that takes user's input to produce a document. ... The user would need to upload an attachment for the document. ... The upload is performed by a servlet, which causes us to leave the current ... we're looking at using the session scope. ...
    (comp.lang.java.programmer)
  • Re: Best way to get the user to select a picture.
    ... > How do I create a popup box to allows them to browse their machine and ... > upload the selected file to my server. ... The same can be done for the box where the user type in an URL. ...
    (comp.lang.php)