A
aDeamon
I have a uniform layout of my jsp-pages with the use of
<%@ include file="jspf/prelude.jspf" %>
and
<%@ include file="jspf/postlude.jspf" %>
The servlets are pritty dirty and output HTML code directly to
response. (I am only working with a prototype - will use of some sort
of framework later on).
My servlets starts with
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/jspf/prelude.jspf");
dispatcher.include(request, response);
and ends with
dispatcher = getServletContext().getRequestDispatcher("/jspf/
postlude.jspf");
dispatcher.include(request, response);
Now to the problem. In my prelude.jspf I call on a servlet that builds
the navigation-menu with data from a database with
<jsp:include page="GetCategories" flush="false"/>
Everything works fine i my jsp files, but when the Servlet output
pages the servlet in prelude dont run... ??
Any one got a solution for my problem or maybe an alternative way of
doing it?
<%@ include file="jspf/prelude.jspf" %>
and
<%@ include file="jspf/postlude.jspf" %>
The servlets are pritty dirty and output HTML code directly to
response. (I am only working with a prototype - will use of some sort
of framework later on).
My servlets starts with
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/jspf/prelude.jspf");
dispatcher.include(request, response);
and ends with
dispatcher = getServletContext().getRequestDispatcher("/jspf/
postlude.jspf");
dispatcher.include(request, response);
Now to the problem. In my prelude.jspf I call on a servlet that builds
the navigation-menu with data from a database with
<jsp:include page="GetCategories" flush="false"/>
Everything works fine i my jsp files, but when the Servlet output
pages the servlet in prelude dont run... ??
Any one got a solution for my problem or maybe an alternative way of
doing it?