[opencms-dev] Export in getResourceName() : newbie
Ganesh Chandra
GChandra at westhillpartners.com
Tue Feb 17 23:09: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
More information about the opencms-dev
mailing list