This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Encoding problem  RSS feed

 
Paras Jain
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Struts with Tomcat 5
I am using bean write property as


and setting the linkValue property of testForm to
<A href='test'> abc </A>

I expect the html to be generated as
<td class="text" bgColor="#dedede"><A href='test'> abc </A></td>

but I am getting the html as
& lt ;td class="text" bgColor="#dedede"& gt ; & lt ;A href=& #39 ;test& #39 ;> abc & lt ;/A& gt ;& lt ;/td& gt ;

Therefore on the browser I am getting the value as
<A href='test'> abc </A> instead of a link

What could be the reason for this problem? Should I correct encoding somewhere?I am using UTF-8 as of now
[ May 02, 2007: Message edited by: Paras Jain ]
 
H Ritwick
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using filter=false in bean write.
http://struts.apache.org/1.2.7/userGuide/struts-bean.html#write
 
Paras Jain
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it worked. Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!