I tried to use c:import in my
jsp like this:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>opusOFFICE</title>
</head>
<body>
<c:import url="http://www.google.com" />
</body>
</html>
However, I got this error on
Tomcat 5.5.
javax.servlet.ServletException: javax.servlet.jsp.JspException: Problem accessing the absolute URL "http://www.google.com". java.net.ConnectException: Connection timed out: connect
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:844)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.import_jsp._jspService(org.apache.jsp.import_jsp:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
The strange thing is that I can access google from IE directly, does anyone have idea about this?
Thanks.