File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import tag in JSTL