[opencms-dev] Replicating URL

Bill Edwards wse at jimmy.harvard.edu
Tue Dec 11 23:16:25 CET 2007


Hi all--the following JSP:

<%@ page session="false" import= "java.util.*, org.opencms.jsp.*" %>	
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<%
     // Create a JSP action element
     org.opencms.jsp.CmsJspActionElement cms = new CmsJspActionElement 
(pageContext, request, response);

    String testlink = cms.link("test.html");

    out.println("<p/>testlink using CmsJspActionElement cms.link:<p/>  
" + testlink);
%>
<p/>
Now using cms:link tag:<p/>
<cms:link>test.html</cms:link>

is producing output similar to the following under both OpenCMS 6.2.3  
and 7.0.2:

testlink using CmsJspActionElement cms.link:

/opencms/opencms/ecog_mcltest/test.html

Now using cms:link tag:

/opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/opencms/opencms/opencms/opencms/opencms/opencms/ 
opencms/opencms/system/modules/com.alkacon.documentation/resources/ 
alkacon.css../resources/logo_alkacon.gif../resources/ 
logo_opencms.gif../resources/empty.gif/ECOG_CC_Site/index.html/ 
ECOG_www/index.html/ECOG_CC_Site/search_result.html/ECOG_CC_Site/ 
index.html/ECOG_www/index.html/system/search_result.html/ECOG_CC_Site/ 
index.html/ECOG_www/index.html/system/search_result.html../resources/ 
alkacon.css../resources/logo_alkacon.gif../resources/ 
logo_opencms.gif../resources/empty.gifindex.htmltest_tag_user.jsp../ 
index.htmlbroken.htmltest.htmltest.htmlstyle.csstest.html

We are seeing this with any JSP that uses <cms:link>.  Has anybody  
run into this phenomenon?  Thanks very much!

-- Bill Edwards, Senior Programmer
    Frontier Science Technology Research Foundation/
    Eastern Cooperative Oncology Group
    wse at jimmy.harvard.edu






More information about the opencms-dev mailing list