wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP file limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP file limit" Watch "JSP file limit" New topic
Author

JSP file limit

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Hi,
Is there any limitations on JSP file size. Read somewhere that it should not exceed 64KB.
IF true, what is the reason?
Thanx in adv.


Groovy
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
Originally posted by Pradeep Bhat:
Hi,
Is there any limitations on JSP file size. Read somewhere that it should not exceed 64KB.
IF true, what is the reason?
Thanx in adv.

In a Java Virtual Machine (JVM), the size of a single method is limited to 64KB. A JSP page compiles, under most first-generation JSP translators, to a single method. (Note that the size of this method isn't necessarily related to the size of the page's output; a JSP page can easily output more than 64k worth of data. But a page with, say, two-thousand JSP tags would be likely to run afoul of the limit.) Newer JSP translators, such as Jasper2, go to greater lengths to avoid this problem and make it less noticeable in most situations.


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Originally posted by Shawn Bayern:

In a Java Virtual Machine (JVM), the size of a single method is limited to 64KB. A JSP page compiles, under most first-generation JSP translators, to a single method. (Note that the size of this method isn't necessarily related to the size of the page's output; a JSP page can easily output more than 64k worth of data. But a page with, say, two-thousand JSP tags would be likely to run afoul of the limit.) Newer JSP translators, such as Jasper2, go to greater lengths to avoid this problem and make it less noticeable in most situations.


This was a truly helpful post if you ask me. You learn something new every day! Thanks, Shawn! I won your book this week, so I'm looking forward to reading it soon!


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP file limit
 
Similar Threads
Jsp to Excel
mock exam ques
Relative URL specifications, JSP 1.2.1
include a JSP file
my actionform is not populated