Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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?
 
Marshal
Posts: 67414
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Christopher McCauley wrote:but it is not working....


ItDoesntWorkisUseless
 
Author
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... )

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
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.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic