wood burning stoves 2.0*
The moose likes JSP and the fly likes import tag in JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "import tag in JSTL" Watch "import tag in JSTL" New topic
Author

import tag in JSTL

Rohit Bhagwat
Ranch Hand

Joined: Dec 19, 2004
Posts: 205
Hello sir,madam

my jsp file has the following code

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:import url="http://www.wickedlysmart.com/skyler/horse.html"/>

However I get the following exception

javax.servlet.ServletException: Problem accessing the absolute URL "http://www.wickedlysmart.com/skyler/horse.html". java.net.ConnectException: Connection timed out: connect

Can anyone suggest what might be the problem ?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The error message is self explanatory. Verify that you can access the URL by going to the page.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Rohit Bhagwat
Ranch Hand

Joined: Dec 19, 2004
Posts: 205
Originally posted by Bosun Bello:
Verify that you can access the URL by going to the page.


Yes I verified that the url is accessible by going to that page.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: import tag in JSTL
 
Similar Threads
c:import problem
Doubts on JSTL - import
c:import
c:import var
equal symbol expected