Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Problem with some JSPs moving to tomcat 4.1.12

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have recently moved from tomcat 3.2.3 to tomcat 4.1.2. I am getting a servlet error that says "Code of a method longer than 65535
bytes" on some jsp pages. They worked fine in 3.2.3.
I have read elsewhere to divide up the JSP into smaller JSPs with include statements, but that was already the case.
If anyone has any advice or has had this problem, thank you in advance.
djochim
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you should use Servlets for the business logic and only JSP for the presentation.
Try read about the MVC pattern
Rene
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, this is a great reason to use custom tags.
Simon
 
Dave Jochim
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you both for your quick replies. Already my business logic lies in servlets and mainly EJBs.
The JSP I am having trouble with is only 140 lines long and mainly just has <%@ include statements for other JSP and mainly HTML files. This JSP creates one servlet that is 550K however.
As I understood breaking up a JSP with include statements to other JSP was the way to go.
Also in Tomcat 3.2.3 the servlet created from this JSP is equally as big (~550K) but didn't seem to have this trouble.
thanks again
djochim
[ January 09, 2003: Message edited by: Dave Jochim ]
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did NOT mean a Servlet created from a JSP...
You need to look after a REAL Servlet as the Controller and with beans as the Model, finally the JSP as the Viewer (MVC pattern).
Rene
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic