This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Jsp File- Maximum Size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Jsp File- Maximum Size" Watch "Jsp File- Maximum Size" New topic
Author

Jsp File- Maximum Size

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

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
java.lang.StackOverflowError

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,
Regards
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

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.

SAif


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
Ben Souther
Sheriff

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Jsp File- Maximum Size
 
Similar Threads
Java Read/Write on huge file system
JSP processing time without Network delay
Struts 2 FileUpload Interceptor Problem for Large File Size Upload....
getServletConfig() does not work
Max upload file size?