What version of Resin 4.0 are you using? I can reproduce this easily
on resin-pro-4.0.10 by doing this:
-- create test.jsp:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="test2.jsp" var="debug"/>
${debug}
--
-- create test2.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="test3.jsp" var="debug"/>
${debug}
--
-- create test3.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Some output.
--
Then just call: http://localhost/test.jsp
And it will throw your error. It only happens when one c:import calls
another one.
This behavior is completely fixed in resin-pro-4.0.12 though (and was
working in resin-4.0.6, so it broke some time after that release).
Aaron
On 10/18/2010 7:14 PM, Matthew Serrano wrote:
I seem to have issues using JSTL c:import within Resin 4.0. Below is
my code and the error. Any ideas? Does Resin 4.0 no longer support the
import tag?
FYI...my:frame is a custom tag that eventually executes jsp:doBody.
matt
<<<<< CODE >>>>>
<my:frame title="${title}">
<c:set var="defaultJsp">/common/termsAndConditions_en.jsp</c:set>
<c:import var="content" url="${defaultJsp}" />
<c:out value="${content}" escapeXml="false" />
</my:frame>
<<<<<ERROR>>>>>
javax.servlet.jsp.JspException: unimplemented
at com.caucho.jstl.rt.CoreImportTag.doEndTag(CoreImportTag.java:246)
at
_jsp._common._termsAndConditions__jsp$_CauchoFragment_0._jsp_invoke(_termsAndConditions__jsp.java:157)
at com.caucho.jsp.JspFragmentSupport.invoke(JspFragmentSupport.java:93)
at _jsp._WEB_22dINF._tags._frame__tag.doTag(_frame__tag.java:407)
at
_jsp._common._termsAndConditions__jsp._jspService(_termsAndConditions__jsp.java:102)
at
_jsp._common._termsAndConditions__jsp._jspService(_termsAndConditions__jsp.java:29)
at com.caucho.jsp.JavaPage.service(JavaPage.java:64)
at com.caucho.jsp.Page.pageservice(Page.java:542)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:194)
at com.caucho.filters.GzipFilter.doFilter(GzipFilter.java:149)
at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
at
com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
at
com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:675)
at
com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:637)
at
com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:588)
at
com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink.java:1175)
at
com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(TcpSocketLink.java:1108)
at
com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.java:1142)
at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:182)
at com.caucho.env.thread.ResinThread.run(ResinThread.java:126)
Caused by: java.lang.UnsupportedOperationException: unimplemented
at
com.caucho.filters.CauchoResponseWrapper.getStatus(CauchoResponseWrapper.java:343)
at
com.caucho.server.http.ResponseAdapter.getStatus(ResponseAdapter.java:385)
at
com.caucho.jstl.rt.CoreImportTag$JstlImportResponseWrapper.<init>(CoreImportTag.java:466)
at com.caucho.jstl.rt.CoreImportTag.handleBody(CoreImportTag.java:380)
at com.caucho.jstl.rt.CoreImportTag.doEndTag(CoreImportTag.java:222)
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest