Jsp 如何改变http://localhost:8080 带着面包屑回家?
我在jsp中使用它作为面包屑Jsp 如何改变http://localhost:8080 带着面包屑回家?,jsp,spring-mvc,breadcrumbs,Jsp,Spring Mvc,Breadcrumbs,我在jsp中使用它作为面包屑 <div class="breadcrumb"> <c:url var="home" value="http://localhost:8080/" /> <c:forEach var="bc" items="${breadcrumb.tree}" varStatus="status"> <c:choose> <c:when
<div class="breadcrumb">
<c:url var="home" value="http://localhost:8080/" />
<c:forEach var="bc" items="${breadcrumb.tree}" varStatus="status">
<c:choose>
<c:when test="${status.index==0}">
<a href="/">${home}</a>
</c:when>
<c:when test="${status.index == fn:length(breadcrumb.tree)-1 && status.index!=0}">
»${bc.name}
</c:when>
<c:otherwise>
<a href="${bc.value}">»${bc.name}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</div>
»${bc.name}
我得到这个--http://localhost:8080/ »产品
但我想要家里的产品
有人能告诉我会是怎样的吗。您正在存储以下值:
http://localhost:8080/
进入变量home,然后在锚标记内输出
商店:
<c:url var="home" value="http://localhost:8080/" />
输出:
<a href="/">${home}</a>
在消息文件中定义主页,或忽略对其进行分配