The first thing this makes me think of is why don't you just use an iterate
tag over the bean tag. Can you say more about what you are trying to accomplish?

Bryan LaPlante

---------- Original Message -----------
From: Aladin Alaily <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Mon, 10 Apr 2006 18:26:30 -0400
Subject: Custom tag question

> Hi,
> 
> I have a question pertaining intregrating a custom tags with a struts 
> tag.  I want to know if there exists a "best practise" when trying to do 
> what I'm doing (other than not doing it).
> 
> I am trying to write a custom tag which wraps another tag in the 
> following way:
> 
> HTML Written: <a:customTag printout="3" />
> 
> Desired Output: "printout" number of <html:bean ... /> tags
> 
> Code to do it:
> --------------
> void doStartTag() ... {
>       ...
>       for(int i=0 ; i<printout ; i+++) {
>               BeanTag b = new BeanTag();
>               // Set tag attributes here
>               b.doStartTag();
>       }
>       ...
> }
> 
> Have you guys come across a situation where you had to do something like 
> this?  and if so, what is the best way of creating such a custom tag? 
> Would you use a .tag to produce the effect described above?
> 
> Thanks.
> Aladin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
------- End of Original Message -------

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

Reply via email to