Am I missing something, but you put an ArrayList in the request. The ArrayList contains multiple LabelValue objects.
<logic:iterate id="whatYouWantToCallIt" type="java.util.List" name="projects"> FYI, see my other post about using the Log TabLib from the JSTL project. It helps in these kinds of situations. Steve >From: "Damien VIEL" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Pb : request.SetAttribute() from Action >Date: Fri, 24 May 2002 18:24:33 +0200 > >Hi, >I've many problem to put a ArrayList from my Action in the request. >---------------------------------------------------------------------------- >----------- >By doing for example in my Action Class : > ArrayList proj = new ArrayList(); > proj.add(new LabelValueBean("name", "id")); > request.setAttribute("projects", proj); > return (mapping.findForward("success")); >---------------------------------------------------------------------------- >----------- >In my JSP if I try this : ><%@ page language="java" %> ><%@ taglib uri="/WEB-INF/tld/app.tld" prefix="app" %> ><%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> ><%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> ><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %> > ><logic:present name="projects" scope="request"> > <logic:iterate name="projects" id="proj" scope="request" >type="LabelValueBean"> > <bean:write name="proj" property="label"/> > <bean:write name="proj" property="value"/> > </logic:iterate> ></logic:present> > ><logic:notPresent name="projects" scope="request"> >Error ></logic:notPresent> > >--------------------------------------------------------------------------- >------------ >I have allays the "notPresent" message > >I can not fint the solution !! >Deos it comes from the Struts-config.xml, form the fact that i'm use the >Template TagLib ?? > >Please Help >Thanks All > >Dams >Dams > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>