struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Sargent" <csarg...@aerisinc.com>
Subject RE: <nested:iterate> & building columns
Date Fri, 18 Oct 2002 20:23:26 GMT
>		<nested:iterate property="informationsessions">
>			<nested:write property="location.city"/><br>
>		</nested:iterate>

Do the objects in the set returded by date.getInformationSessions() have
a location.city property or is location intended to be the "id".  i.e,
do you mean:

		<nested:iterate id="location"
property="informationsessions">
			<nested:write property="location.city"/><br>
		</nested:iterate>


-----Original Message-----
From: Adam Sherman [mailto:adam@teachandtravel.com] 
Sent: Friday, October 18, 2002 1:10 PM
To: Struts Users Mailing List
Subject: Re: <nested:iterate> & building columns


Sri Sankaran wrote:
 > Re: NullPointerException A: My guess is that the object returned by a
> getLocation() call on the objects in your informationsessions  >
collection is null.  The code block

OK, after many loops and out.println's, I've established that all the 
data is there.

A few things of note:

<nested:iterate id="dates" name="currentSchedule">
	<nested:write property="date"/>
	<blockquote>
		<nested:iterate property="informationsessions">
			<nested:write property="location.city"/><br>
		</nested:iterate>
	</blockquote>
</nested:iterate>

- currentSchedule is a List of MyDates
- date.getInformationSessions() returns a Set. (Is this OK?)

So, I verified that the data is there. But I still get a 
NullPointerException, therefore I must be trying to pull data from the 
wrong spot in the structure. )-:

Thanks,

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



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


Mime
View raw message