Java tutorial
/** * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved. * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * http://www.ewcms.com */ package com.ewcms.publication.freemarker.directive; import org.apache.commons.lang.StringUtils; /** * ????? * * @author wangwei */ public class UriFormat { /** * ?????? * * @param path * @return */ public static String formatChannelPath(String path) { String[] s = StringUtils.split(path, "/"); return StringUtils.join(s, "/"); } }