Good Day:

This is a reeditng and send of my previous mail.

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.


================ the start and ending tag simbols were changed with editing 
purpose


[%@ 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="java.util.ArrayList" %]
[portlet:defineObjects/]
        [%ArrayList eapbList = (ArrayList)session.getAttribute("eapbItems"); 
                %]
                [TABLE cellpadding=0" style="font-family: monospace;
                                                color: #666666;" 
class="portlet-table-body"]
                        [tbody ]
                                [tr]
                                
                                        [td]
                                                [table valign="top"]
                                                        [tr style='background: 
#99ccff']
                                                                        [td 
align="left"]Codigo[/td]
                                                                        [td 
align="center"]N o m b r e[/td]
                                                        [/tr]
                                                        [c:forEach var="elem" 
items="${eapbList}"
                                                                                
        varStatus="status" ] 
                                                                [tr]
                                                                        
[td][c:out value="${elem.cod_eapb}" /][/td]
                                                                        
[td][c:out value="${elem.nom_corto}" /][/td]
                                                                [/tr]
                                                        [/c:forEach]
                                                [/table]
                                        [/td]
                                [/tr]
                                        
                        [/tbody]
                [/TABLE]
                
===================================================================

This is a 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="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"]
                        [tbody ]
                                [tr]
                                
                                        [td]
                                                [table valign="top"]
                                                        [tr style='background: 
#99ccff']
                                                                        [td 
align="left"]Codigo[/td]
                                                                        [td 
align="center"]N o m b r e[/td]
                                                        [/tr]
                                                        [c:forEach var="elem" 
items="[%=eapbList %]"
                                                                                
        varStatus="status" ] 
                                                                [%EapbItemBean 
eapbItem = (EapbItemBean)pageContext.getAttribute("elem");
                                                                        %]
                                                                [tr]
                                                                        
[td][%=eapbItem.getCod_eapb() %][/td]
                                                                        
[td][%=eapbItem.getNom_corto() %][/td]
                                                                [/tr]
                                                        [/c:forEach]
                                                [/table]
                                        [/td]
                                [/tr]
                                        
                        [/tbody]
                [/TABLE]
                
=====================================================================

The first JSP agrees with the examples that appear in almost any portlet book.
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. 

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

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


-------------------------------------------------------
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