Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

must be used with a prefix when a default namespace is not specified

843840Nov 28 2008 — edited Nov 28 2008
I`m sorry ,my English is poor,I`m chinese student,I need some help
<c:forEach var="pare1" items="${pare.webtypeBeanlist}" >
       <li><c:if test="${!pare1.webtypeBeanlist.isEmpty()}"><a href="#">${pare1.type_name }</a></c:if>
      		<c:otherwise><a href="#">${pare1.type_name }</a></c:otherwise>
	    <ul>
	    <c:forEach var="pare2" items="${pare1.webtypeBeanlist}" >
	     <li class="Child"><a href="#">${pare2.type_name}</a></li><!--Child Node-->
	    </c:forEach>
	    </ul></li>
	  </c:forEach>
The function isEmpty must be used with a prefix when a default namespace is not specified
why function isEmpty() can`t used in JSTL
and How can I used it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2008
Added on Nov 28 2008
3 comments
2,338 views