wood burning stoves 2.0*
The moose likes Servlets and the fly likes StringIndexOutOfBoundsException in Program for File Upload  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "StringIndexOutOfBoundsException in Program for File Upload  " Watch "StringIndexOutOfBoundsException in Program for File Upload  " New topic
Author

StringIndexOutOfBoundsException in Program for File Upload

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
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

Joined: Sep 22, 2011
Posts: 70
@Bear

Thanks.. Took your advice
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

Please provide the exception stack trace. That will tell us where the exception occurred.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: StringIndexOutOfBoundsException in Program for File Upload