Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import tag in JSTL

 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is self explanatory. Verify that you can access the URL by going to the page.
 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic