Hi, When I do: req.getRequestDispatcher(url).forward(req, res), this exception appears: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 What does it mean? Thanks.
Author and all-around good cowpoke
posted 15 years ago
It literally means that a String method such as charAt( n ) has tried to address a position that the String does not have, in this case -1. Since -1 is returned by String search methods when they don't find a character, I suspect the url string in your call is badly formatted. Bill