This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
GeeCON Prague 2014
 
subject: import tag in JSTL