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

StringIndexOutOfBoundsException in Program for File Upload

 
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
Pie
Posts: 20527
54
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic