Mariano García escribió:
Hi guys,

I have a question about the best way to do some stuff. I am generating an array of objects (conection) in one action in order to show all of them in a jsp page, using a <logic:iterate> tag. Each of these object has an int attribute that represents an error identification stored in a DB.

So, I have two beans: conection and error. I need to get the error identification from the conection object. My question is how to generate the eror collection. The easy way is to generate an array with the same length as conection array (and then iterate it), but I think this is not a very efficient solution because an error can be repeated several times.


I forgot to say that I want to do that using struts tags. Now I have implemented it using java code into de jsp (but I think it is horrible). Maybe the solution is use the nested tag, but I think it is not possible (i think the conection object need a reference to its error fot that).

Regards,
Mariano.

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

Reply via email to