找不到包 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 07:47:03  来源:igfitidea点击:

Can't find resource for bundle java.util.PropertyResourceBundle

javajsp

提问by coderman

Any ideas on what this below error is??? JSP Can't find resource for bundle java.util.PropertyResourceBundle, key el.converti 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 counttwice. 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>