This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes help on c:import tag problem 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 "help on c:import tag problem" Watch "help on c:import tag problem" New topic
Author

help on c:import tag problem

Priyha Jootu
Ranch Hand

Joined: Sep 13, 2001
Posts: 47
Hi all,
I am trying to use the c:import tag, i have set up the configuration in tomcat 4.0.3 with whatever instructions the JSTL said.
Here is the jsp code:
<%@ page import="java.net.*" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:import url="http://www.google.com" />
Basically i want to access the files from different servers and machines in my JSP . jsp:include only looks files inside the web application context directory. so I used c:import for this. i tried a small example and it is not working.
It throws the following error when i run this:
Not sure what is missing, please let me know what is causing this error.

If anyone know whats the problem, please let me know.
Thanks,
Priyha
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
I put exactly those lines into my JSP and don't get that error. I get a Google page (with the graphics missing).


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help on c:import tag problem
 
Similar Threads
Problem with JSTL c:import
JSTL-XML problem
<c:url> not working properly
Doubts on JSTL - import
Including files in a jsp from different machine