Hi All !! I still have a bug for several days...... I'm trying to set in the request object a Arraylist and display it on a JSP file. --------------------------------------------------------------------------- In my action class i'm doing : ArrayList proj = new ArrayList(); proj.add(new LabelValueBean("name", "id")); request.setAttribute("projects", proj); return (mapping.findForward("success"));
--------------------------------------------------------------------------- Then the mapping send me on the following JSP which use the template TagLib: <%@ taglib uri='/WEB-INF/tld/struts-template.tld' prefix='template' %> <template:insert template='/MyTemplate.jsp'> <template:put name='header' content='/header.jsp' /> <template:put name='menu' content='/menu.jsp' /> <template:put name='center' content='/myprojectcontent.jsp' /> <template:put name='footer' content='/footer.jsp' /> </template:insert> --------------------------------------------------------------------------- My ArrayList must by display in the myprojectcontent.jsp which is following : <%@ 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="java.util.ArrayList"> <bean:write name="proj" property="value"/> <bean:write name="proj" property="label"/> </logic:iterate> </logic:present> <logic:notPresent name="projects" scope="request"> Not Present Message </logic:notPresent> --------------------------------------------------------------------------- I allways have the notPresent body text displayed... I'cant find why !!! Thanks All. Dams -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>