OpenCms JSP standard taglib
Function formatResourceName
java.lang.String formatResourceName(java.lang.String, int)
Shortens a resource name or path so that it is not longer than the provided maximum length.
In order to reduce the length of the resource name, only complete folder names are removed and replaced with ... successively, starting with the second folder. The first folder is removed only in case the result still does not fit if all subfolders have been removed.
Example: formatResourceName("/myfolder/subfolder/index.html", 21)
returns /myfolder/.../index.html
.
Function Information |
Function Class | org.opencms.util.CmsStringUtil |
Function Signature | java.lang.String formatResourceName(java.lang.String, int) |
Display Name | None |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.