[opencms-dev] <cms:link>main.jsp</cms:link> not expanding properly?

Thomas Gagné tgagne at wideopenwest.com
Sun Feb 15 20:49:01 CET 2004


The following .jsp is included from a template using <cms:include 
file="../nav.jsp"/>.  Why would the first link not be expanded properly? 
 Instead of giving me a valid link, the text 
"<cms:link>main.jsp</cms:link>" actually appears.  I use this same 
syntax other places without a problem.

nav.jsp

<%@ page import="java.util.*,com.opencms.flex.jsp.*" %>
<%
        CmsJspActionElement cms = new CmsJspActionElement(pageContext, 
request, response);
        ArrayList list = cms.getNavigation().getNavigationForFolder();
        Iterator i = list.iterator();
%>
        <h2 align="center">Navigation</h2>
        <hr noshade="noshade"/>

        <a href="<cms:link>main.jsp</cms:link>">Home</a><br/>
<%
        while (i.hasNext()) {
        CmsJspNavElement ne = (CmsJspNavElement)i.next();
        out.println("<a href=\"" + cms.link(ne.getResourceName()) + "\">");
        out.println(ne.getTitle() + "</a><br/>");
        }
%>




More information about the opencms-dev mailing list