Jslt c在href [英] Jslt c out in a href
本文介绍了Jslt c在href的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该如何写行:
How should I write line:
<a href="User?id=<c:out value="${user.id}" />" >Profile</a>
正确吗?它会给我一些像Profile
correctly? It shoult give me something like Profile
My context:
My context:
<c:forEach items="${requestScope.users}" var="user">
<tr>
<td><c:out value="${user.login}" /></td>
<td><c:out value="${user.name}" /></td>
<td><c:out value="${user.lastname}" /></td>
<td><a href="User?id=<c:out value="${user.id}" />" >Profile</a></td>
</tr>
</c:forEach>
推荐答案
试试'
内部反之亦然
<a href="User?id=<c:out value='${user.id}' />" >Profile</a>
这篇关于Jslt c在href的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文