Mi correggo, va!
Solo che integrando il tuo codice nel mio non ottengo alcun output 
Ecco il mio codice completo:
Codice PHP:
<%@ page import="java.util.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:javascript formName="loginformbean"/>
<div class="area_body">
<div class="titolo">Autenticazione</div>
<table width="98%" class="righe2">
<tr>
<td>Per accedere all'area riservata è necessario autenticarsi</td>
</tr>
</table>
<html:form action="/logInAction" onsubmit="return validateLoginformbean(this);">
<table>
<tr>
<td width="187">Username</td>
<td width="144"><html:text property="username"/></td>
</tr>
<tr>
<td>Password</td>
<td><html:text property="password"/></td>
</tr>
</table>
<table>
<tr>
<td></td>
</tr>
<tr>
<td><html:submit value="Accedi"/></td>
</tr>
</table>
<%
ArrayList list = new ArrayList();
list.add("Paperino");
list.add("Gastone");
list.add("Paperone");
pageContext.setAttribute("listaNomi", list);
%>
<ul>
<logic:iterate id="nome" name="listaNomi" indexId="indice">[*]
Nome: <bean:write name="nome"/> all'indice <bean:write name="indice"/>
</logic:iterate>[/list]
</html:form>
</div>
E' strano o mi sbaglio?