FW: [opencms-dev] Export in getResourceName() : newbie

Ganesh Chandra GChandra at westhillpartners.com
Wed Feb 18 16:30:01 CET 2004


Hi

I'm using this standard code to display FOLDERS in my JSP page.

while (i.hasNext())
    {
        com.opencms.flex.jsp.CmsJspNavElement ne = (com.opencms.flex.jsp.CmsJspNavElement)i.next();
        String description = ne.getDescription();

        String target = ne.getProperty("target");
        if (! ne.getResourceName().equals(filename))
        { 
            out.println("<p class=\"tf\">");
            out.println("<b><a class=\"tf\" href=\"" + cms.link(ne.getResourceName()) + "\" >");
            if (ne.isFolderLink())
            {
                out.println("<img src=\"" + foldericon + "\" border=\"0\" alt=\"folder\" >");
            }              
            out.println(ne.getTitle() + "</a></b>");
            out.println("</p>");
        }      
    }

When i browse through the file "OFFLINE" everything works fine. When i publish it and switch to "ONLINE" mode

http://server1:8080/opencms/export/testapp/Site/Welcome/

it adds up "export" keyword in the URL and displays "Directory Listing For /export/..."

How to solve this issue.

Thanks in advance.

- GC

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list