aspose file tools*
The moose likes Struts and the fly likes Display registered trademark on jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display registered trademark on jsp" Watch "Display registered trademark on jsp" New topic
Author

Display registered trademark on jsp

Dipakpsd Kumar
Greenhorn

Joined: Dec 08, 2011
Posts: 5
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>

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display registered trademark on jsp