How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Hi all,
I have an application where the user should be allowed to use text 
formatting tags as b or li (and so on). To avoid that tags like 
html oder body (and so on) are used I check the for these tags 
before it's stored in the DB.

When the text is read from the DB my tags are encoded to lt;bgt;. How 
can this be avoided? It's indeed a nice feature, but I don't like this 
right now. ;-)

Hope someone can give me a hint.
Thanks,
Axel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to avoid character encoding for html tags

2004-06-11 Thread Vclavk Radek
Hi Axel, 

don't know if I understood your problem well, but i have such text in db and
when printing it in jsp using bean:write i use this parameter:

bean:write name=foo property=fooo filter=false/

Hope this helps.

regards Radek

 -Original Message-
 From: Axel Seinsche [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 11, 2004 12:09 PM
 To: Struts Users Mailing List
 Subject: How to avoid character encoding for html tags
 
 
 Hi all,
 
 I have an application where the user should be allowed to use text 
 formatting tags as b or li (and so on). To avoid that tags like 
 html oder body (and so on) are used I check the for these tags 
 before it's stored in the DB.
 
 When the text is read from the DB my tags are encoded to 
 lt;bgt;. How 
 can this be avoided? It's indeed a nice feature, but I don't 
 like this 
 right now. ;-)
 
 Hope someone can give me a hint.
 
 Thanks,
 Axel
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Vclavk Radek wrote:
Hi Axel, 

don't know if I understood your problem well, but i have such text in db and
when printing it in jsp using bean:write i use this parameter:
bean:write name=foo property=fooo filter=false/
Hope this helps.
 

Hi Radek,
thanks your very much. As I used c:out the filter attribute didn't 
work. But I found the attribute escapeXml=false. This works perfectly.

Axel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]