I dont have a nice simple tag handy to send.. but here is what you should
look up

Look up the object BodyTagSupport. you will want to probably extend this one
to make your tag.
To build the tag there are multiple methods that get involed at different
points of the tag processing. their names are pretty straight forward.

doBeforeBody();
doAfterBody();

ect..

you have access to a request object.. so if you need to read a struts from
value.. just use it to pull the object out of the request or session
memmory.
( if you have never done this manually its pretty easy the string name of
the object is exactly the same as its class name)

JMG





----- Original Message -----
From: "SuniX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 9:51 AM
Subject: Re: <bean:write > boolean


> okay ... i've never write tags ....
> can you give me a small example ?
>
> Jamie M. Guillemette a �crit :
> > I might suggest writting your own tag then to ouput the desired text.
Tags
> > are not difficult to write and you can make changes to it pretty easily
if
> > you need to modify the functionality later one.
> >
> > JMG
> >
> >
> >
> > ----- Original Message -----
> > From: "SuniX" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, July 04, 2003 9:40 AM
> > Subject: <bean:write > boolean
> >
> >
> >
> >>hi i have a arraylist of bean with  boolean attributs
> >>and i want to render a image (or another string than true) when it's
> >>true and another image when it's false :
> >>
> >><logic:iterate id="permissionbean" name="permissionsList" >
> >>   <tr>
> >>    <td><bean:write name="permissionbean" property="user.group"/></td>
> >>    <td><bean:write name="permissionbean" property="user.name"/></td>
> >>    <td><bean:write name="permissionbean" property="read"/></td>
> >>    <td><bean:write name="permissionbean" property="write"/></td>
> >><!-- it render "true" or "false" but i want to render "writeable" or
> >>"not writeable" -->
> >>
> >>   </tr>
> >></logic:iterate>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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]

Reply via email to