[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Problems with includes


Is anyone having problems with the jsp:include and/or @include statements?

Here's my situation:  I have a menu.jsp file that I want to include in all
the pages in a directory.  Menu.jsp is a menu bar that goes down the left
side of the page, and will look at the filename of the page it's being
included on and highlight the menu item for that page (so a person knows
where they are).

As an example, index.jsp is the home page for this area, so it includes
menu.jsp down the side:

<jsp:include page="menu.jsp" flush="true" />  -or-  <%@ include
file="menu.jsp" %>

(I've tried both)

If I restart the web server, if I run index.jsp through the browser first, I
don't get an included file.  If I run menu.jsp, then index.jsp, everything
works for jsp:include.  @include doesn't work at all; I just get a 404
error:  /servlets/gnujsp1 not found.  (I've aliases gnujsp10.jar as
servlet.gnujsp1.code in my properties file).  Also, if I change menu.jsp,
GNUJSP 1.0 doesn't seem smart enough to know to recompile index.jsp (maybe
if @include worked, this might work properly).  The includes worked, albeit
differently, in GNUJSP .9, but at least they knew when menu.jsp changed to
recompile index.jsp.

I'm running all this on a RedHat Linux 5.2 box, Apache 1.3.9, JServ 1.0,
Blackdown JSDK 1.1.7.  Also, I include the gnujsp10.jar file in the
jserv.properties (wrapper.classpath), rather than the servlets.properties
(my servlets zone) file.  Should I try moving it to the servlets zone?

Thanks for any help,
Sean