Hi,

The tag "replace" in the "string" jakarta taglibs can do this
look at:

http://jakarta.apache.org/taglibs/doc/string-doc/index.html#replace

I used it in a project, was something like:

<st:replace replace="\n" with="&lt;br&gt;"> <bean:write ...../> </st:replace>


Salut,

-- Antoni Reus


A Dimecres 23 Octubre 2002 19:50, Eddie Bush va escriure:
> Let me correct myself.  It does not appear there is such an animal in
> taglibs at this point in time.  There was someone wanting c:out to
> provide this behavior, and the response was that the string taglib may
> provide this functionality in the future.  You may wish to join
> taglibs-user or taglibs-dev to influence this development.
>
> Eddie Bush wrote:
> > There are already taglibs that do this transformation, aren't there?
> > Doesn't the taglibs project have things that address this?  Is there a
> > way to do this using the JSTL (Martin?)?
> >
> > David Graham wrote:
> >> If this is a common problem, maybe we could add a method to Action
> >> like breakNewLines(String) that does this transformation.  The
> >> <bean:write> tag should not do any transformation, just display what
> >> it's given.
> >>
> >> What do you think?
> >>
> >> Dave


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to