Re: Anyone ever use StringEscapeUtils.unescapeHtml
dont use StringEscapeUtils.unescapeHtml. use the insert component like this Mit freundlichem Gruss homburg Softwaretechnik S.Homburg 21220 Seevetal / GERMANY Fon: +49-4105-669746 Fax: +49-4105-668947 Teofilus Maximillian schrieb: Hi guys, I tried to use StringEscapeUtils.unescapeHtml, from hardcoded in the java class, until I put in the .page file. I show my example... probably you can help me to figure out import org.apache.commons.lang.StringEscapeUtils; public String getThreadBody(){ dCon="test"; String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon); return strUnEscapeHTML; } and also in the .page file I put : value="ognl:@[EMAIL PROTECTED](threadBody)"/> but it is not working, the display still like "test" not "test" in bold Thanks Teo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone ever use StringEscapeUtils.unescapeHtml
You don't have to use the StringEscapeUtils class. Just read the docs of the Insert component http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html and use the raw parameter Teofilus Maximillian wrote: > Hi guys, I tried to use StringEscapeUtils.unescapeHtml, from hardcoded > in the java class, until I put in the .page file. I show my example... > probably you can help me to figure out > > > import org.apache.commons.lang.StringEscapeUtils; > > public String getThreadBody(){ > > dCon="test"; > > String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon); > > return strUnEscapeHTML; > } > > > and also in the .page file I put : > > > value="ognl:@[EMAIL PROTECTED](threadBody)"/> > > > > but it is not working, the display still like "test" > not "test" in bold > > Thanks > > Teo > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Anyone ever use StringEscapeUtils.unescapeHtml
Have you tried setting the raw property to true? -Original Message- From: Teofilus Maximillian [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 10:56 PM To: tapestry-user@jakarta.apache.org Subject: Anyone ever use StringEscapeUtils.unescapeHtml Hi guys, I tried to use StringEscapeUtils.unescapeHtml, from hardcoded in the java class, until I put in the .page file. I show my example... probably you can help me to figure out import org.apache.commons.lang.StringEscapeUtils; public String getThreadBody(){ dCon="test"; String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon); return strUnEscapeHTML; } and also in the .page file I put : but it is not working, the display still like "test" not "test" in bold Thanks Teo -- Posted with http://DevLists.com. Sign up and save your mailbox. - 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]