cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicki Møller <nicki_mol...@yahoo.dk>
Subject Dynamic content presentation
Date Mon, 17 Jul 2000 10:07:04 GMT

Hi All, 

I need help on how to get the day array presented in
my xml file(how can I refer to a dynamic var. or an
array).

Here's how my code looks


-------- XML --------
String[] day = new String[7];
SimpleDateFormat format = 
new SimpleDateFormat("dd-MM-yyyy"); 
Calendar calendar = Calendar.getInstance(); 
while(calendar.get(Calendar.DAY_OF_WEEK) &gt;
calendar.getFirstDayOfWeek()) 
	{  
	calendar.add(Calendar.DATE,-1);
	} 
		for(int i = 0; i &lt; 7; i++) 
		{ 
		 day[i] = format.format(calendar.getTime()); 	
                  calendar.add(Calendar.DATE,1); 
		} 
-----------

What I whould like to do is shomthing like 

<day1>
<xsp:expr>
day[1]
</xsp:expr>
</day1>

but when I try to do it nothing gets return

All help is appreciated

-Nicki

______________________________________________________
Do You Yahoo!?
Få en gratis @yahoo.dk-adresse på http://mail.yahoo.dk

Mime
View raw message