shibboleth-dev - conditional iteration using struts
Subject: Shibboleth Developers
List archive
- From: "Tom Scavo" <>
- To: "Shibboleth Development" <>
- Subject: conditional iteration using struts
- Date: Mon, 17 Apr 2006 14:55:44 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=R8DiS6T3dfPMiMg+NtctuSxaVqeVpoKlgyMykPCQ5VB0JJLhJCML4ELwfT9e+DM2iZaSTL4Y6os/IPigJnKO5B95Ryejbk1oGzgOmW1u/XnhsKcXOwAVFSFa9+Mdm68kshtDQlp7k2oTLu0XX8kCzYcQHB1Odio9TceS1uwFDEg=
In a JSP, I know how to iterate over a collection using struts:
<jsp:useBean id="registeredDNs" scope="request" class="java.util.ArrayList" />
<p>
<strong>Registered Certificates:</strong>
<label title="Check a distinguished name to unregister" for="dn">
<logic:iterate id="dn" name="registeredDNs" type="java.lang.String">
<br /><input type="radio" name="registeredDN" value="<bean:write
name="dn" />" /> <bean:write name="dn" />
</logic:iterate>
</label>
</p>
But if the collection is empty, how do I bypass the iteration and
output some static text instead.
Thanks,
Tom
- conditional iteration using struts, Tom Scavo, 04/17/2006
Archive powered by MHonArc 2.6.16.