File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Size of JSP file" Watch "Size of JSP file" New topic
Author

Size of JSP file

pankaj semwal
Ranch Hand

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

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: 301
Actually this was the interview question.And they said this is not answer.


Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42912
    
  68
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