Asim Alp wrote:
I found the reason of the previous error message. However, I'm still having a problem. This time my <c:import ... tag doesn't load anything at all.

Here is my setup:

/test.jsp (context "")
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp<br><br>
<c:import url="/hello.jsp" context="/jsp-apps" />

/hello.jsp (context /jsp-apps)
Hello World!<br>

When I view /test.jsp, I only get:
This is test.jsp

In my browser.

I tried one more thing.  I replaced test.jsp with the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp<br><br>
<c:import url="http://www.yahoo.com"; />

It worked! I got a page that says "This is test.jsp" at the top followed by the frontpage of yahoo.com.

Any suggestions?

So I moved my test.jsp to the root folder, added a ROOT.xml context file with crossContext="true", and it still works.


Your response is committed. Look in the logs for the stack trace of the error.

--
xxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to