Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.lang.StringIndexOutOfBoundsException: String index out of range:

Status
Not open for further replies.

teky

Programmer
Mar 24, 2000
55
US
I am getting the following error when I try to view my
JSP in the Browser.
Can anybody suggest me why I am getting this error.
I would also appreciate any solutions.

Thanks,
Vijay.


 
Post some code because my magic powers of divination are running low. Wushutwist
 
Wushutwist - lol :p

Anyway, I think the most common problem with Strings facing this error is the use of charAt() method found in the String class. Check if you have made any range too big for the String.

Leon
 
you'll also get this when doing substrings with indexAt()s that don't exist, I think... but now we're all just guessing. A code framework helps. <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top