[opencms-dev] More on replicating URL

cui hengji cuihengji at gmail.com
Wed Dec 12 13:45:47 CET 2007


hi, Bill Edwards

   I run your jsp file on my computer 7.0.2, the output is the following
lines:

// Start ------------------------------------------------------------
testlink using CmsJspActionElement cms.link:
/test.html
Now using cms:link tag:
/test.html
// End ------------------------------------------------------------

  By the way, I have configured multi-sites in my OpenCms, I use the
following link to test your jsp file:
http://localhost/test.jsp

Stanley




On 12/12/07, Bill Edwards <wse at jimmy.harvard.edu> wrote:
>
> We are also seeing messages similar to the following in opencms.log:
>
> 11 Dec 2007 16:11:29,318 ERROR [ina.core.ApplicationDispatcher: 704]
> Servlet.service() for servlet jsp threw exception
> com.opencms.legacy.CmsLegacyException: File not found: /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/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/training/lesson02/yoda.gif/
> system/modules/org.frontier.ecog.docs/resources/ecogcctemplate/
> ccheader.gif/training/lesson03/example4.jsp../lesson03/
> example4.jsptest.htmltest.htmltest.htmltest.htmltest.htmltest.htmltest.h
> tmltest.htmltest.htmltest.htmltest.htmltest.htmltest.htmltest.htmltest.h
> tmltest.htmltest.htmltest.htmltest.htmltest.htmltest.htmltest.htmltest.h
> tmltest.htmltest.htmltest.htmltest.htmltest.htmltest.htmlcrazy.html/
> system/modules/org.frontier.ecog.docs/resources/ecogcctemplate/
> ccheader.gif/system/modules/org.frontier.ecog.docs/resources/
> ecogcctemplate/ccheader.giftest.htmlcrazy.htmlthird.html./
> webtest_text.txt
>
> Thanks. -- Bill Edwards
>
> On Dec 11, 2007, at 4:42 PM, Bill Edwards wrote:
>
> 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
>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20071212/00bdf5a7/attachment.html>


More information about the opencms-dev mailing list