•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 373,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,582 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 378 | Replies: 1
![]() |
•
•
Join Date: Apr 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I had a jsp which is built using struts. It is 54 Kb.
Problem is page is not getting loading in JBoss server. Server console error is : “Code too large for try statement”.
When I see the java file what server generates for the jsp, all the (form)fields (all <tr> and <td>)are under out.println()… and all the out.printlns() are inside the try block.
Where as the same works fine using Weblogic server.
I copied some code in some other jsp and included that jsp using page directive include, thinking that page is heavy to load or to render.
If you have idea on this please give some inputs.
Regards,
Naresh
I had a jsp which is built using struts. It is 54 Kb.
Problem is page is not getting loading in JBoss server. Server console error is : “Code too large for try statement”.
When I see the java file what server generates for the jsp, all the (form)fields (all <tr> and <td>)are under out.println()… and all the out.printlns() are inside the try block.
Where as the same works fine using Weblogic server.
I copied some code in some other jsp and included that jsp using page directive include, thinking that page is heavy to load or to render.
If you have idea on this please give some inputs.
Regards,
Naresh
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation:
Rep Power: 18
Solved Threads: 187
says it all.
A 54KB JSP is WAY too large.
ANY method in Java can contain at most 64KB of code. Your entire 54KB JSP ends up as part of a single method, expanded into Java code.
That's going to be one massive method, most likely several hundred KB of code.
If it works on WL, WL's JSP compiler does not conform to the language standard.
Split the thing up, organise it properly, start learning to use dynamic includes.
A 54KB JSP is WAY too large.
ANY method in Java can contain at most 64KB of code. Your entire 54KB JSP ends up as part of a single method, expanded into Java code.
That's going to be one massive method, most likely several hundred KB of code.
If it works on WL, WL's JSP compiler does not conform to the language standard.
Split the thing up, organise it properly, start learning to use dynamic includes.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
ad ad server ad serving advertising architecture backup beta business centro crash daniweb database dell development doubleclick enterprise google hyper-v internet linux longhorn mail microsoft mmorpg news novell open qmail red hat rhel server server 2008 smtp software source suse vmware windows windows server
- Previous Thread: how to get the running applications in windows task manager using java
- Next Thread: Sending SMS from website over SMPP



Linear Mode