Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JSP limit exceeds 64K  RSS feed

 
Ranch Hand
Posts: 63
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I am aware in java there is a method size limit 64k , I want to know is there any workaround for this problem . My JSP does not contain any static include . I am running with tomcat 8.5 version . It does well on lower versions of Tomcat.
I have tried changing web.xml available inside tomcat's conf directory , Following are the tags i havce used. Did java 8 change any thing in JVM or Tomcat Container got changed  any thing while translating JSP ? Because same code runs well with java 7 along with Tomcat 7.
 
Saloon Keeper
Posts: 4754
117
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a JSP is that big, it's likely to be unmaintainable - break it down into smaller chunks. If there is a lot of repetition, see if you can create custom JSP tags.

And, of course, if there is any Java code in it, get rid of it in favor of a proper MVC design.
 
Master Rancher
Posts: 3631
40
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim's second paragraph is possibly the key here.
The only times I've seen this limit hit in a JSP is because there was a lot of Java code on the page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!