I had a problem which I thought was a JSP file size limit using JRun 2.3.3
and IIS 4.0.  I didn't investigate it too long because I moved all the code
into JavaBeans.

I like this approach because the JSP pages are so straightforward and short,
and all the logic lives in beans.

Cheers,
Matthew

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Young Dave
Sent: Wednesday, December 01, 1999 9:07 PM
To: [EMAIL PROTECTED]
Subject: Maximum JSP Page size.


Fellow JSP users...

I am using JRUN verion 2.3.3 running under Netscape Fasttrack server which
is
running on a Solaris 2.6 box. I am finding that my JSP pages can be a
maximum of
15581 bytes before I get a "ArrayIndexOutOfBoundsException" exception. I
have
come to this file size via a process of trial and elimination. This limit
probably varies according to the amount of "header" information that the JSP
and
html page contains.

The exact message I get is.....
<--- start exception message -->
500 Internal Server Error

com.livesoftware.jsp.JSPServlet:

javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException
<--- end exception message -->

I have kept my pages very simple, the top and tail of the page can be found
below. I have tried modifying the buffer size (all the way upto 256kb), that
and
the combination of autoFlush seem to make no difference. I am using JSP1.0,
not
JSP0.9. Has anybody else come across any similar problems, or am I doing
something glaringly stupid that I am just not picking up on?

I have been using JSP for a couple of other purposes quite successfully to
date,
I came across this problem whlist attempting to put together a large design
document, trying to take advantage of the jsp "include" facility (which is
not
used in the following trivial example).

Please forgive any ugly formatting that the brain-dead email client that I
am
forced to use here may inflict upon this text.

Any experiences, suggestions or assistance will be warmly welcomed. I would
really like to be able to use the verson of JSP I have here to complete this
job.

<%@ page buffer="8kb" autoFlush="true" session="false" errorPage="error.jsp"
%>
<html>
<title>Test JSP Page</title>
<body>
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
.... and so on.....

abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy
</font>
</body>
</html>

Regards,

Dave Young.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to