• Post Reply Bookmark Topic Watch Topic
  • New Topic

<jsp:include> pages in static block of _jspService method

 
Christopher McCauley
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have joined a new project, and I am trying to make room for additional code in a jsp...I understand that this desperately needs to be refactored, but....we'll leave it at that

Tomcat 5.5 in JBoss 4.0.3
Java 1.5 b22

There are about 28 include directives that stack up to a very large _jspService method and for two of the larger pages I am changing them to jsp:include, but it is not working.... Here is one of the includes:


And here is the _jspService code generated:


Ideas?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christopher McCauley wrote:but it is not working....

ItDoesntWorkisUseless
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see ItDoesntWorkIsUseless.

If you're saying it's generated the same code for both a static and dynamic include then something else is probably broken and you're not seeing the most recently generated source, or it's not being generated.
 
Christopher McCauley
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ill try again. (I'll be sure to avoid any catch phrases... :wink

This message started the process:
from log:


I changed a include directive to a dynamic include and for all intents and purposes..it actually didnt work, doh!....what could be wrong is my assumption that the static dependencies seen in the static block of the _jspService method are not realted to the actual compilation of the jsp --> servlet...I am not sure of this...

I have opened the source file (jspName.java) generated in the work directory and there is no correlated .class file, thus leading me to believe( perhaps falsely) that I am 1) looking at the correct generated file ( confirmed by timestamp) and that 2) it is the file that is failing to be compiled.

any other info that might be helpful?


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Delete the Java file and try again.

If that's not it, then the file is still too large.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!