Good Day:

It seems like i made a mistake in a jsp inside a portlet for JBoss-2.2.0
 over JBoss-4.0.3SP1 that I can not identify; This is the not working JSP.


<%@ page session="true"%>
<%@ taglib uri='/WEB-INF/tld/portlet.tld' prefix='portlet' %>
<%@ taglib uri='/WEB-INF/tld/c.tld' prefix='c' %>
<[EMAIL PROTECTED] import="java.util.ArrayList" %>
<portlet:defineObjects/>
                <TABLE cellpadding=0" style="font-family: monospace;
                                                color: #666666;" 
class="portlet-table-body">
                        
                                
                                
                                                Codigo
                                                N o m b r e
                                
                                        <c:forEach var="elem" 
items="${eapbList}"
                                                                        
varStatus="status" > 
                                                        
                                                
                                                        <c:out 
value="${elem.cod_eapb} />
                                                        <c:out 
value="${elem.nom_corto} />
                                                
                                        </c:forEach>
                        
                

The following is a JSP thst works
                
<%@ page session="true"%>
<%@ taglib uri='/WEB-INF/tld/portlet.tld' prefix='portlet' %>
<%@ taglib uri='/WEB-INF/tld/c.tld' prefix='c' %>
                
<[EMAIL PROTECTED] import="com.jtccia.c_contacto.beans.*" %>
<[EMAIL PROTECTED] import="javax.servlet.jsp.jstl.core.LoopTagStatus" %>
<[EMAIL PROTECTED] import="java.util.ArrayList" %>
<portlet:defineObjects/>
        <%ArrayList eapbList = (ArrayList)session.getAttribute("eapbItems"); 
                %>
                <TABLE cellpadding=0" style="font-family: monospace;
                                                color: #666666;" 
class="portlet-table-body">
                        
                                
                                
                                                Codigo
                                                N o m b r e
                                
                                <c:forEach var="elem" items="<%=eapbList %>"
                                                                
varStatus="status" > 
                                        <%EapbItemBean eapbItem_1 = 
(EapbItemBean)pageContext.getAttribute("elem");
                                                short tip_conv = 
eapbItem_1.getTip_conv();%>
                                                
                                        
                                                <%=eapbItem_1.getCod_eapb() %>
                                                <%=eapbItem_1.getNom_corto() %>
                                        
                                </c:forEach>
                        
                

The casting of the page attribute "elem" does not look as normal, but works.

What should I do or include, to make the first JSP to work?

Many thanks.

Jaime Torres C.         


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924076#3924076

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924076


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to