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

include directive



I have such situation:

/first.jsp:
<%@ include file="dir/second.jsp" %>

/dir/second.jsp:
<%
if (somecondition) {
%>
   <%@ include file="/dir/option1.jsp" %>
<%
} else {
%>
   <%@ include file="/dir/option2.jsp" %> 
<%
}
%>

I'm using the latest 1.0.1pre1 jar. The above situation worked fine with
gnujsp 1.0.0. I turned debugging on and figured out that the option1.jsp is
being searched in top level directory as in /option1.jsp

If I remove the /dir prefix in second.jsp, it works.


Help appreciated!

Primoz


-- 
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.