Mike,

Doing an exclude is one approach (as mentioned by Len). When I encountered
this issue a couple of years ago, my Googling turned up the recommended
approach of naming your include files with a ".jspf" suffix instead of a
".jsp" suffix. Jasper should ignore them - and it will be clear which files
are includes.

HTH - Richard

-----Original Message-----
From: Michael P. Soulier [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 14, 2005 7:52 AM
To: Tomcat Users List
Subject: error in jasper precompilation

I'm taking care of a site that uses a common header and footer, with a
dynamic header title, like so

<!-- set the page title -->
<%! String title = "Pawsitive Approach Pet Services"; %>
<!-- header here -->
<%@ include file="comps/header.jsp" %>

In header.jsp, title is used to output the title.

<head>
<title><%= title %></title>

Now, this works just fine. I'm experimenting with precompiling the pages
using jasper, but this really broke compilation of the pages. When javac
tries to compile the precompiled header.jsp file, it says that "title" 
is not defined.

Doesn't that mean that jasper's precompilation is broken, or should I just
tell it to exclude compiling header.jsp, as it's being included in all of
the other pages?

Thanks,
Mike

--
Michael P. Soulier <[EMAIL PROTECTED]>, 613-592-2122 x2522 Linux
applications development "...the word HACK is used as a verb to indicate a
massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to