Solved

Buffer Overflow in JSP

Posted on 2004-03-25
4
736 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now