This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
i am trying to upload a file using servlets given in in a book the congifuration and all is done when i try to run the code the error i get is An unexpected error has occoured Error description :java.lang.StringIndexOutOfBoundsException: String index out of range: -1 could some one tell me why, it is really urgent thanx,bye
It might help if you try to figure out the general vicinity in your code where the exception occurs and then post that code. Most likely, you are passing an invalid index to a String method such as substring() or charAt() ------------------ Junilu Lacar Sun Certified Programmer for the Java� 2 Platform