I have a loop where I need to cast the looped objects if
they are of a certain type.
Can someone explain me if it's possible with any standard tags,
or how I could get hold of the storageObject object through some
java-code?

Here's the loop:

<c:forEach var="anObject" items="${objects}">
  <c:if test="${anObject.typeB}">
    Need to cast here <% TypeB typeB = anObject.typeB %>
  </c:if>
</c:forEach>




cheers,
Sakke Wiik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to