File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes can anyone help me using jspsmartupload to upload an image??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can anyone help me using jspsmartupload to upload an image???" Watch "can anyone help me using jspsmartupload to upload an image???" New topic
Author

can anyone help me using jspsmartupload to upload an image???

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hello guys.. I've spent hours trying to figure out how this 'utility' works... maybe you can give me a hand. this is the scenario:
* I want to use jspsmartupload to upload an image to a database. I can't find any examples .

as you can see guys I have no clue how to achieve what I want. any suggestions or ideas would be appreciate.
thanks


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,
After the first look at your code for the servlet..
Where is doGet(HttpServletRequest req, HttpServletResponse res) and doPost(HttpServletRequest req, HttpServletResponse res) methods.
It has to be there and it should simply call the processRequest(...) method of yours passing request and response objects.
Try above changes and let me know..


SCJP, SCWCD
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hi Lakshmeenarayana (I copied and pasted your name )
Yes, the doGet and doPost methods exist, and they only do the call to process. I just wanted to show the main portion of the code, which is the one I'm having problems with, specially with the smartupload.
cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can anyone help me using jspsmartupload to upload an image???