File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes <jsp:include> pages in static block of _jspService method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "<jsp:include> pages in static block of _jspService method" Watch "<jsp:include> pages in static block of _jspService method" New topic
Author

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

Christopher McCauley
Greenhorn

Joined: Jan 03, 2005
Posts: 27

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?

This message was edited 1 time. Last update was at by Bear Bibeault



JCM<br />good at cookin'
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48818

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

ItDoesntWorkisUseless


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
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.

This message was edited 2 times. Last update was at by David Newton

Christopher McCauley
Greenhorn

Joined: Jan 03, 2005
Posts: 27
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

Joined: Sep 29, 2008
Posts: 12612
Delete the Java file and try again.

If that's not it, then the file is still too large.
 
 
subject: <jsp:include> pages in static block of _jspService method
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com