找不到包 java.util.PropertyResourceBundle 的资源
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12147977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't find resource for bundle java.util.PropertyResourceBundle
提问by coderman
Any ideas on what this below error is???
JSP Can't find resource for bundle java.util.PropertyResourceBundle, key el.convert
i am getting this when using a jsp. Am i missing some thing??
关于以下错误是什么的任何想法???
JSP Can't find resource for bundle java.util.PropertyResourceBundle, key el.convert
我在使用 jsp 时遇到了这个问题。我错过了什么吗??
<c:set var="count" value="0" scope="page" />
<c:forEach items="${usersList}" var="userNames" >
<c:set var="counter" value="${count + 1}" scope="page"/>
<li class="msImages">
<c:choose>
<c:when test="${counter lt '4'}">
<p> <span> I am creating an image</span>
</p>
</c:when>
<c:when test="${counter eq '4'}">
<span>See More </span>
</c:when>
</c:choose>
</li>
回答by Matt Ball
You're using the same variable name count
twice. Remove the <c:set var="count" value="0" scope="page" />
. Also, you should use propertiesof the varStatus
, and not the value directly. It's not a primitive object.
您使用了count
两次相同的变量名。删除<c:set var="count" value="0" scope="page" />
. 此外,你应该使用性质的varStatus
,而不是直接的价值。它不是原始对象。
<c:forEach items="${usersList}" var="userNames" varStatus="stat">
<c:set var="counter" value="${stat.count + 1}" scope="page"/>
<li class="msImages">
<c:choose>
<c:when test="${counter lt 4}">
<p> <span> I am creating an image</span> </p>
</c:when>
<c:when test="${counter eq 4}">
<span>See More </span>
</c:when>
</c:choose>
</li>
</c:forEach>