Read the JSP spec.  The include directive requires a relativeURLspec.  You
can only include files from the current webapp so there is no need to fully
qualify the URL.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Abdullah
> Sent: Wednesday, March 07, 2001 3:41 AM
> To: [EMAIL PROTECTED]
> Subject: Include files in Tomcat and Apache
> Importance: High
>
>
> > hi  ,
>
> I  have apache  1.3.14 ( with Jserv) and Tomcat  3.2.1 running in
> the same machne
> on linux.
> All the html and images are in apache,
> All the Jsp and Servlets  are in tomcat
> Here i have one problem .
> I have a jsp  called login.jsp which has an include statement  like
>
>     <%@ include file="http://127.0.0.1/static/msFoot1.html" %>
>  or
> <%@ include file="http://abdullah/static/msFoot1.html" %>
>
> when i call this login.jsp , i am getting the following exception
>
> Internal Servlet Error:
>
> org.apache.jasper.compiler.CompileException:
> /usr/local/jakarta-tomcat-3.2.1/webapps/Oilgrains/jsp/
> login.jsp(9,0) Bad file
> argument to include
>         at java.lang.Throwable.(Throwable.java:96)
>         at java.lang.Exception.(Exception.java:44)
>         at javax.servlet.ServletException.(ServletException.java:107)
>         at org.apache.jasper.JasperException.(JasperException.java:73)
>         at
> org.apache.jasper.compiler.CompileException.(CompileException.java:73)
>
>         at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(J
spParseEventListener.java:730)
>
>         at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(Dele
gatingListener.java:116)
>
>         at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
>         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
>         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
>         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
>         at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
>         at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>         at
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
>         at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNeces
> sary(JspServlet.java:152)
>
>         at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
Servlet.java:164)
>
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:797)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> Connection(Ajp12ConnectionHandler.java:166)
>
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:498)
>
> please ,anyone can help me?
> Thanks
> Abdullah
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

Reply via email to