File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
 
jQuery in Action, 2nd edition
 
subject: StringIndexOutOfBoundsException in Program for File Upload
 
Similar Threads
moving files over the network
request cannot be resolved. any imports missing??
Large File Size Upload Problem
JSP Page For Uploading a File to Destination Folder
error in uploading zip file