Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic