• Post Reply Bookmark Topic Watch Topic
  • New Topic

StringIndexOutOfBoundsException in Program for File Upload  RSS feed

 
Maya sekar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I have a code to upload files through a jsp page, i read it in my servlet. But it throws an StringIndexOutOfBoundsException when I run it and am not able to figure out why.

This is my code




Can anyone please tell me how to resolve the issue. Thank you in advance for replying.
Have a nice day
 
Maya sekar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bear

Thanks.. Took your advice
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide the exception stack trace. That will tell us where the exception occurred.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!