no :(
all that is done with the put, if direct != true, is a
pageContext.include(yourfile);
--m
----- Original Message -----
From: "Rick Horowitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 4:24 PM
Subject: Can I "put" http://www.xyz.com/file.html using template?
> Can I "put" a url pointing to another website so that its content is
> included in my template, e.g.
>
> <template:insert template="/jsp/template/tp.jsp">
> <template:put name="cnt" content="http://www.xyz.com/file.html"/>
> </template:insert>
>
> When I try this, I get the following stack trace...
>
> java.io.IOException: The filename, directory name, or volume label syntax
> is incorrect
> at java.io.Win32FileSystem.canonicalize(Native Method)
> at java.io.File.getCanonicalPath(File.java:437)
> at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java:184)
> at org.apache.tomcat.core.Context.getRealPath(Context.java:797)
> at
>
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.jav
a:196)
> at
>
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:819
)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherIm
pl.java:339)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl
.java:270)
> at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
> at
> org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:189)
> at
>
jsp.template._0002fjsp_0002ftemplate_0002ftp_0002ejsptp_jsp_0._jspService(_0
002fjsp_0002ftemplate_0002ftp_0002ejsptp_jsp_0.java:191)
> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherIm
pl.java:400)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl
.java:270)
> at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
> at
> org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:145)
> at
>
jsp.template._0002fjsp_0002ftemplate_0002fcalltp_0002ejspcalltp_jsp_0._jspSe
rvice(_0002fjsp_0002ftemplate_0002fcalltp_0002ejspcalltp_jsp_0.java:537)
> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
> Thanks in advance for any help,
>
> --------------------
> Rick Horowitz