aspose file tools
The moose likes Servlets and the fly likes StringIndexOutOfBoundsException in Program for File Upload  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 19232

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


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: StringIndexOutOfBoundsException in Program for File Upload
 
Similar Threads
Large File Size Upload Problem
error in uploading zip file
JSP Page For Uploading a File to Destination Folder
request cannot be resolved. any imports missing??
moving files over the network