• Post Reply Bookmark Topic Watch Topic
  • New Topic

File upload example  RSS feed

 
Prakash Rai
Ranch Hand
Posts: 107
Eclipse IDE MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In above code why I am getting error at line 02,03,04.?
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might help if you actually told us what the error was.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also what the context is. I assume that you're asking about a web application of some kind, but you posted this in JDBC (where it clearly doesn't belong) so maybe it isn't. I'm going to take a guess and move it out of JDBC anyway.
 
Prakash Rai
Ranch Hand
Posts: 107
Eclipse IDE MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:And also what the context is. I assume that you're asking about a web application of some kind, but you posted this in JDBC (where it clearly doesn't belong) so maybe it isn't. I'm going to take a guess and move it out of JDBC anyway.


this Program to upload the file. Related to Servlet program.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:It might help if you actually told us what the error was.
 
Prakash Rai
Ranch Hand
Posts: 107
Eclipse IDE MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
Matthew Brown wrote:It might help if you actually told us what the error was.
"Type mismatch: cannot convert from Iterator to ObjToIntMap.Iterator" this is Error
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's due to the import statement in line 14; what's that supposed to accomplish? What kind of object is actually needed in line 40?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!