Hi,
I encountered this problem today using iPlanet-WebServer-Enterprise/4.1SP7.
21/Mar/2002:19:21:10] info (28255): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Bad file argument to include
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(ServletException.java:68)
at org.apache.jasper.JasperException.(JasperException.java:73)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled
Code)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled Code)
at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at
com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230
)
at
com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:1
49)
at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:
469)
and here's part of the JSP program:
...
<%
if (intvar == 1 ) { %>
<%@include file="jspShortHeading1.jsp"%>
<%}
else if (intvar == 2) { %>
<%@include file="jspShortHeading2.jsp"%>
<%}%>
If the 'else' part is removed, everything works fine. Is there something
wrong with nested java if conditions
with the 'include file' tag?
Please help.
Thanks.
Jasmin
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com