aspose file tools*
The moose likes JSP and the fly likes Upload image to server using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Upload image to server using JSP" Watch "Upload image to server using JSP" New topic
Author

Upload image to server using JSP

kenji jonathan
Greenhorn

Joined: Oct 07, 2011
Posts: 4

Hi friends, I want to ask, how to upload image to server using JSP?...thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18655
    
    8

Don't use a JSP. The purpose of a JSP is to generate output in a text format, usually HTML. Clearly that purpose doesn't encompass uploading files. You should use a servlet to do that.

And the easiest way to do it in a servlet is to use the Apache File Upload package.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

See the JspFaq for more info.

And Paul is correct, Java code in a JSP is nothing short of irresponsible at this stage.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload image to server using JSP