• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encoding problem

 
Paras Jain
Ranch Hand
Posts: 138
  • 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: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it worked. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic