File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Jsp File- Maximum Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp File- Maximum Size" Watch "Jsp File- Maximum Size" New topic

Jsp File- Maximum Size

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980

Whats the maximum file size of a jsp ???

I am getting StackOverflowError....when i am adding a huge lenght if condition...(its unavoidable)

The server says
The system is out of resources

Without that condition,it is working fine and the file size is 57KB.

After the condition is placed,it is 90KB.

In the server logs,it is also mentioned that ..

"Unable to compile ...jsp".

Thanks in advance,
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

Originally posted by A Kumar:

Whats the maximum file size of a jsp ???

I believe that your problem is not related with the size of Jsp because I have never heard this things before about jsp.

please correct me if i am wrong.


[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is an upper limit to the amount of code you can put in a JSP.
The exact number is dependent on the server (specifically the JSP compiler).

Stack overflow errors, however wouldn't be caused by that.
This is usually caused by code with a recursive loop that doesn't properly terminate itself.

Do you have a method that calls itself or two methods that call each other?
[ December 05, 2006: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Jsp File- Maximum Size
jQuery in Action, 3rd edition