File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes jsp:include causes StringIndex OutOfBoundsException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp:include causes StringIndex OutOfBoundsException" Watch "jsp:include causes StringIndex OutOfBoundsException" New topic

jsp:include causes StringIndex OutOfBoundsException

Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
I'm doing some maintenance coding, trying to move a bunch of scriptlet code into Struts actions.

The problem I run into is with this line:

Something about that include causes a nasty stacktrace:

Here is the contents of header.jsp:

I'm using OC4J 10.1.2 as my app server, and Java SDK 1.4.12.

Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
Um, guys, just because I happened to use the word Struts in my post does not make this a Struts issue. However, my one my team members pointed out the error:

should have been

This is horribly, horribly off-topic for the Struts forum. I highly recommend an admin close this topic and move it to the JSP forum.
I agree. Here's the link:
subject: jsp:include causes StringIndex OutOfBoundsException
It's not a secret anymore!