Dynamic html:image

2003-12-19 Thread gentyjp


Hi

 Struts and tags newbie again !!

 I have a string vector of image name.
I wish to view them using html:image.
My question is how can I initialize my page attribute ?

logic:iterate id=item name=imageList 
  html:image  page=put here the value of my iterator 
/logic:iterate
 Thanks

  Jean-Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dynamic html:image

2003-12-19 Thread Nicolas De Loof
Assuming imageList contains String taht are absolute (in application context) path to 
your images, this should work :

logic:iterate id=item name=imageList 
html:image  page=%= item % 
/logic:iterate


Nico.

- Original Message - 
From: gentyjp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 19, 2003 11:04 AM
Subject: Dynamic html:image 


 
 
  Hi
 
   Struts and tags newbie again !!
 
   I have a string vector of image name.
 I wish to view them using html:image.
 
 My question is how can I initialize my page attribute ?
 
 
  logic:iterate id=item name=imageList 
html:image  page=put here the value of my iterator 
  /logic:iterate
 
   Thanks
 
Jean-Paul
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic html:image

2003-12-19 Thread Mark Lowe
Same as nico really but you might like the el option

html-el:img page=${item} /

i'd have the image as a bean with a path, name and desc properties

html-el:img page=${item.path}
imageName=${item.name}
alt=${item.desc} /
Cheers Mark

On 19 Dec 2003, at 10:37, Nicolas De Loof wrote:

Assuming imageList contains String taht are absolute (in application 
context) path to your images, this should work :

logic:iterate id=item name=imageList 
html:image  page=%= item % 
/logic:iterate
Nico.

- Original Message -
From: gentyjp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 19, 2003 11:04 AM
Subject: Dynamic html:image



 Hi

  Struts and tags newbie again !!

  I have a string vector of image name.
I wish to view them using html:image.
My question is how can I initialize my page attribute ?

 logic:iterate id=item name=imageList 
   html:image  page=put here the value of my iterator 
 /logic:iterate
  Thanks

   Jean-Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dynamic html:image

2003-12-19 Thread gentyjp
At 11:37 19/12/2003, you wrote:
Assuming imageList contains String taht are absolute (in application 
context) path to your images, this should work :

logic:iterate id=item name=imageList 
html:image  page=%= item % 
/logic:iterate
  It works, except I had to do  item.toString()

 Thanks a lot

 Jean-Paul 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]