>
> On Mon, 16 Sep 2002, zze-JEANJEAN S ext FTRD/DMI/SOP wrote:
> 
> > The c:out tag convert special characters to character entities, why
> > not do the same thing with \n (to <br/>) ? 
> 
> Because such a translation isn't general-purpose or based on the rules
of
> XML; JSTL isn't tied to HTML specifically.
> 
Off course, but in fact, it's usually used with HTML, so it's could be
an option...

> 
> > Is there a tag to convert \n to <br/> ??
> 
> You should be able to use the String Taglib or the Regexp Taglib.
> 
The str:replace tag is not easy to use : in the replace propertie the \n
is not understood :(( You have to put in this propetie a real new line,
so the code is not really readable :(
For instance :
...
<str:replace replace="
" with="<BR/>"><c:out
value="${requestScope[theKey].address1}"/></str:replace>
...

bye,

Stephane

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

Reply via email to