You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Stanley, Jason" <Ja...@cognicase.com> on 2002/08/07 17:38:32 UTC
String Tag Library and Dynamic Data - Why Not?
should the tags in the string tag library not affect dynamic data? when i use static text, such as the given example...
<str:replace replace="
" with="<br>">A sentence.
Another sentence.
Some more to test. And insert Br's into.
Hopefully.</str:replace>
...i get the expected result...
A sentence.
Another sentence.
Some more to test. And insert Br's into.
Hopefully.
however, when i try to use this like so...
<str:replace replace="
" with="<br>"><%=(((topics_data = topics.getObject("body"))==null || topics.wasNull())?"":topics_data)%></str:replace>
...i get everything on one line. same deal with capitalizeAllWords tag. what a drag. should this not work?
if not, how about encoding form data with the replace tag before it hits the database? is that possible?
thanks in advance for any insight,
j
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>