简体   繁体   English

找不到包java.util.PropertyResourceBundle的资源

[英]Can't find resource for bundle java.util.PropertyResourceBundle

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. JSP Can't find resource for bundle java.util.PropertyResourceBundle, key el.convert我在使用jsp时得到了这个。 Am i missing some thing?? 我想念东西吗?

 <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>

You're using the same variable name count twice. 您使用相同的变量名称count两次。 Remove the <c:set var="count" value="0" scope="page" /> . 删除<c:set var="count" value="0" scope="page" /> Also, you should use properties of the varStatus , and not the value directly. 另外,您应该使用varStatus 属性 ,而不是直接使用值。 It's not a primitive object. 它不是原始对象。

<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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到包java.util.PropertyResourceBundle枚举的资源 - Can't find resource for bundle java.util.PropertyResourceBundle ENUM java.util.MissingResourceException:找不到捆绑包java.util.PropertyResourceBundle的资源 - java.util.MissingResourceException :Can't find resource for bundle java.util.PropertyResourceBundle java.util.MissingResourceException: 找不到包 java.util.PropertyResourceBundle, key 的资源 - java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key 无法找到bundle java.util.PropertyResourceBundle的资源 - Cant find resource for bundle java.util.PropertyResourceBundle 为什么会发生此异常:“ java.util.MissingResourceException:找不到包java.util.PropertyResourceBundle,密钥MQJE001b的资源”? - Why does this exception occur: “java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key MQJE001b”? 无法找到bundle java.util的资源 - Can't find resource for bundle java.util java.util.MissingResourceException:找不到捆绑包的资源 - java.util.MissingResourceException: Can't find resource for bundle java.util.MissingResourceException:找不到基本名称的包 - java.util.MissingResourceException: Can't find bundle for base name java.util.MissingResourceException:找不到基本名称的包 - java.util.MissingResourceException: Can't find bundle for base name 找不到资源包 - Can't find resource bundle
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM