struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PaweĊ‚ Wielgus <poulw...@gmail.com>
Subject Re: logic:iterate issue
Date Wed, 11 Mar 2009 10:45:55 GMT
Hi Joe,
You can try to output authorId, without property set on, maybe these
objects are empty inside.
Also, did You imported logic tags into jsp?

Best greetings,
Pawel Wielgus.

2009/3/10, Russo, Joe <RussoJ@cadmus.com>:
> The following bean:write code outputs:
> [com.cadmus.rpm.domain.custom.AuthorsCDTO@d08faa]
> <bean:write name="summaryArchiveForm" property="allAdditionalAuthors"/>
> I am using a (allAdditionalAuthors) ArrayList to store AuthorsCDTO.
> Should I be using another collection type?
> Not sure why this is not working and would really appreciate any help.
>
>
> -----Original Message-----
> From: Russo, Joe [mailto:RussoJ@cadmus.com]
> Sent: Tuesday, March 10, 2009 2:28 PM
> To: Struts Users Mailing List
> Subject: logic:iterate issue
>
>
> Sorry forgot to change subject.
>
> -----Original Message-----
> From: Russo, Joe [mailto:RussoJ@cadmus.com]
> Sent: Tuesday, March 10, 2009 2:25 PM
> To: Struts Users Mailing List
> Subject: RE: Convention Plugin and Action Chaining
>
> I defined the below code and would like to use the iterate functionality
> witin the jsp.  This code does not cause any error, but does not display
> any data.  Any ideas why?
>
> package com.cadmus.rpm.domain.custom;
>
> import java.io.Serializable;
> import java.util.Date;
> import java.util.ArrayList;
>
>
> public class AuthorsCDTO implements Serializable {
> private String addAuthorFirstName;
> private String addAuthorLastName;
> private String addAuthorMiddleInitial;
> public String getAddAuthorFirstName() {
> 	return addAuthorFirstName;
> }
> public void setAddAuthorFirstName(String addAuthorFirstName) {
> 	this.addAuthorFirstName = addAuthorFirstName;
> }
> public String getAddAuthorLastName() {
> 	return addAuthorLastName;
> }
> public void setAddAuthorLastName(String addAuthorLastName) {
> 	this.addAuthorLastName = addAuthorLastName;
> }
> public String getAddAuthorMiddleInitial() {
> 	return addAuthorMiddleInitial;
> }
> public void setAddAuthorMiddleInitial(String addAuthorMiddleInitial) {
> 	this.addAuthorMiddleInitial = addAuthorMiddleInitial;
> }
>
>
> }
>
> private ArrayList allAdditionalAuthors;
> public ArrayList getAllAdditionalAuthors() {
> 	return allAdditionalAuthors;
> }
> public void setAllAdditionalAuthors(ArrayList allAdditionalAuthors) {
> 	this.allAdditionalAuthors = allAdditionalAuthors;
> }
>
> <logic:present name="summaryArchiveForm" property="allAdditionalAuthors"
> scope="session">
> <logic:iterate id="authorId" name="summaryArchiveForm"
>       property="allAdditionalAuthors"
>       type="com.cadmus.rpm.domain.custom.AuthorsCDTO" scope="session">
> <tr bgcolor="#E6E6E6">
> 	<td align="center" id="cell">
> 		<bean:write name="authorId"
> property="addAuthorFirstName"/>
> 	</td>
> 	<td align="center" id="cell"></td>
> 		<bean:write name="authorId"
> property="addAuthorMiddleInitial"/>
> 	<td align="center" id="cell"></td>
> 		<bean:write name="authorId"
> property="addAuthorLastName"/>
> 	<td align="center" id="cell"></td>
> </tr>
> </logic:iterate>
> </logic:present>
>
> ****
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ****
>
> ****
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ****
>
> ****
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message