Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

Upload Images in JSP

Thread view: 
lynch_susan - 30 Mar 2006 18:41 GMT
Newbie,

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

Thanks.
jcsnippets.atspace.com - 30 Mar 2006 22:08 GMT
> 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
Alex Hunsley - 31 Mar 2006 16:01 GMT
> Newbie,
>
> I have to create a jsp page where i can upload some gif images to a
> server location. How can i do that?

Find out who has already invented that particular wheel and use their code!
In this case, the useful com.oreilly.servlet package comes to the rescue.

http://servlets.com/cos/
Frances - 31 Mar 2006 18:39 GMT
>>Newbie,
>>
[quoted text clipped - 5 lines]
>
> http://servlets.com/cos/

I use a Jakarta-Commons package, works pretty well..
http://jakarta.apache.org/commons/fileupload/

good luck,
Frances


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.