You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sean jones <se...@ubs.com> on 2004/02/27 21:55:08 UTC
Iterate of List - need to test if list is null
I have an object named "Wizard" in the request.
Wizard has a property defined as
pubic Class Wizard {
private List progressBar = null;
public Wizard() {}
public List getProgressBar() { return progressBar; }
}
in JSP i do this
<logic:iterate name="wizard" property="progressBar">
</logic:iterate>
how can i test if the progressBar is null before i start the iterate.
right now i get an error, cant find collection.
i tried to used <logic:notEmpty> but i am not using struts 1.1
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org