[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE: How to create a custom tag which returns struts tag ?
From: "Marco Mistroni" <mmistroni () waersystems ! com>
Date: 2004-04-30 14:56:51
Message-ID: 000f01c42ec3$5edd5340$696ea8c0 () MARCOM1
[Download RAW message or body]
Hi,
Won\t logic:iterate help somewhere, along with tiles?
Regards
marco
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Ludovic Bailly
Sent: 30 April 2004 15:54
To: user@struts.apache.org
Subject: Re: How to create a custom tag which returns struts tag ?
Hi,
Thanks for your response.
I'm agree with you there must be a better approach :-)
What I want to do is really simple. In a jsp page I want to display a
collection of products. I've created a custom tag that takes a product
object as parameter and display it using a velocity template.
Each products must have a link or a button image which forward to a
details page. My concern is about this link which has to be rendered
with a <html:...> struts tag.
I've done like this in order to simplify the jsp code and allow easier
modification of the product appearance.
Maybe using tiles is a solution ?
Ludo.
James Mitchell wrote:
>>Is there a solution ?
>
>
> Yes, the solution is to rethink what you've done. From what you've
> described, it sounds like pretty big hack. Perhaps you can back up a
few
> steps and explain to us what you are doing and someone might offer you
a
> better approach.
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
>
>
>
>
> ----- Original Message -----
> From: "Ludovic Bailly" <ludo@famille-bailly.net>
> To: <user@struts.apache.org>
> Sent: Friday, April 30, 2004 8:17 AM
> Subject: How to create a custom tag which returns struts tag ?
>
>
>
>>Hi,
>>
>>I'm writing a simple custom tag with a doEndTag method writing html
>>code. This html code contains struts html tags that are not
interpreted
>>by tomcat. The result is <html: .../> instead of the result of the
tag.
>>
>>Is there a solution ?
>>
>>Thanks.
>>
>>Ludo.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic