Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display registered trademark on jsp

 
Dipakpsd Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to display registered trademark (i.e 'R' inside circle) on jsp page, I found using '& #174 ;' (I'm putting a space after '&' because its converting it to same symbol) html code I can display it but in my case I want to display it by using iterator in jsp which is (the iterator) fetching the data from DB in its action class and displaying it on jsp as we do always and for this symbol I have inserted the same html code (& #174;) in DB but its displaying & #174; (I'm putting a space after '&' because its converting it to same symbol) code itself in jsp.
Please let me know if you have any idea.
I'm using:<%@ page contentType="text/html; charset=UTF-8"%> for jsp.

below is the js sample code:

<s:iterator value="options" status="rowstatus">
<!-- Option rows -->
<tr>
<td>
<s:property value="name"/>
</td>
<td class="clsQuestions2"><s:property value="value"/></td>
</tr>
</s:iterator>

if I'm putting codetion that if '& #174;' comes then print it & #174; itself then it displaying the registred trade mark but I dont want it. for example in below case its displaying the symbol:

<s:if test="name == 'virtuwell& #174;'">virtuwell®</s:if>

NOTE: because I have to explain here my problem So I'm putting a space after '&' because its converting it to same symbol.

-Dipak
<s:else>

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic