wood burning stoves
The moose likes JSP and the fly likes Size of JSP file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Size of JSP file" Watch "Size of JSP file" New topic

Size of JSP file

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 303
what is maximum size of jsp file that we can use in our application ?
[ November 27, 2008: Message edited by: Bear Bibeault ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It would depend on the JSP compiler and the JSP.

We've had people report that one container fails due to too many lines of code ending up in a single try/catch block in the generated servlet while other containers run the same JSP without a problem.

Personally, I would be more concerned with the amount of code that can be easily maintained in a single JSP. This number, for me, would be much lower than the upper limit for any container out there.
[ November 10, 2008: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 303
Actually this was the interview question.And they said this is not answer.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I don't think the question is well-posed as it is. I can think of several definitions of "maximum JSP file size"; without knowing which one is meant various answers are possible.

There was some discussion on this recently: http://www.coderanch.com/t/414274/JSP/java/When-executing-JSP-Code-too
I agree. Here's the link: http://aspose.com/file-tools
subject: Size of JSP file
It's not a secret anymore!