Solved

Buffer Overflow in JSP

Posted on 2004-03-25
4
742 Views
Last Modified: 2009-07-29
Hi,

I got a problem that I have a large size JSP file about 200K, I unable to display the whole page in web browser. I have already set
<%@ page buffer="none" %>
<%@ page autoFlush="true" %>

I use Tomcat4.0 as the web server.
0
Comment
Question by:chowjessie
4 Comments
 
LVL 6

Expert Comment

by:jarasa
ID: 10685449
What does your JSP display, Data from DB?

If So why don't you make some paging?

Do you get an specific error or just don't see all the data?

Finally. If is not a 200K JSP, con you post the code?

:c)

Javier
0
 
LVL 7

Accepted Solution

by:
searlas earned 250 total points
ID: 10686518
JSP's are compiled into classes, and classes and methods have size limits on them.  Basically, 64k.

So, you need to break up your JSP into chunks and put them together using <jsp:include..> tags (but NOT <%@ include ...%> as that would still form one monster class at compile time.)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Original post  on Monitis Blog. Web performance monitoring is broken into two camps: passive and active. Passive monitoring is defined as looking at real-world historical performance by monitoring actual log-ins, site hits, clicks, requests for…
This article discusses how to implement server side field validation and display customized error messages to the client.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question