Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Size of JSP file

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually this was the interview question.And they said this is not answer.


Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic