File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display registered trademark on jsp" Watch "Display registered trademark on jsp" New topic

Display registered trademark on jsp

Dipakpsd Kumar

Joined: Dec 08, 2011
Posts: 5

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 -->
<s:property value="name"/>
<td class="clsQuestions2"><s:property value="value"/></td>

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.


jQuery in Action, 2nd edition
subject: Display registered trademark on jsp
Similar Threads
Accessing a beanList Returned from JSP
Struts2 variable inside javascript
s:iterator, can you save values other control tags like s:label? POJO
How to display Dynamic Menus and sub-menus using <s:iterator> tag in struts
s:iterator question