Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Text appears in "View Source" but not on screen

Thread view: 
swetha - 02 Dec 2007 11:53 GMT
I have a weird problem regarding Arabic text display on my html page.
Part of the text I wish to display does not show up on the screen but
when I right-click to "View Source" I can find it in the source. This
happens only while I'm trying to display Arabic text on the page. The
same page when displayed in English looks absolutely fine. Displaying
Arabic text on other pages is not posing any problem.

Following is the jsp code being used:

<%
if(i < size)
{
%>
   <c:set var="ttl" value="<%="tD" + i%>"/>
   <c:set var="tr" value="<%="tr" + i%>"/>
   <tr>
       <td title="<fmt:message key="${ttl}"/>">
           <fmt:message key="${tr}"/>
       </td>
   </tr>
<%
}
%>

When i = 0, the var tr0 does not appear on the html page displayed on
my browser but appears in the View Source. Also, the tr0 property is
present in my properties file from which the values are retrieved (or
it would not appear in the source).

What's happening here? Any suggestions?

Swetha
Roedy Green - 02 Dec 2007 13:31 GMT
On Sun, 2 Dec 2007 03:53:50 -0800 (PST), swetha
<swethasivaram@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>What's happening here? Any suggestions?

1. check the meta-data at the head of the generated file to make sure
you have the encoding matching the file. see
http://mindprod.com/jgloss/htmlcheat.html

2. use Firefox inspector to see what fonts in the CSS style sheet are
being used to render the Arabic.  Make sure all the fonts you specify
support Arabic. see http://mindprod.com/applet/fontshower.html

3.  Make sure that the Arabic-capable  font is installed.  
See http://mindprod.com/jgloss/font.html

4. Make sure your browser supports Arabic by testing it on some Arabic
websites that don't use images to render the Arabic.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

swetha - 02 Dec 2007 13:55 GMT
On Dec 2, 3:31 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:

> 1. check the meta-data at the head of the generated file to make sure
> you have the encoding matching the file. seehttp://mindprod.com/jgloss/htmlcheat.html
[quoted text clipped - 8 lines]
> 4. Make sure your browser supports Arabic by testing it on some Arabic
> websites that don't use images to render the Arabic.

If any of these were not as they should be shouldn't I have a problem
displaying all Arabic text? Most of the Arabic text on this page is
displayed. It's just the first value that doesn't show up.
Andrew Thompson - 02 Dec 2007 13:52 GMT
>I have a weird problem regarding Arabic text display on my html page.

This has somehing to do with Java?

>Following is the jsp code being used:

Oh. OK. JSP can churn out plain old HTML, which is really
where you should be pursuing the technical solution.  Code a
plain old (valid) HTML 4.01 strict page that achieves the effect
you are after, and that will most likely be trivial to generate
using JSP ..servlets ..ASP or PHP.

>What's happening here? Any suggestions?

Suggestions?  Validate your HTML*.  And stop bugging
us with off-topic questions.  'JSP' has nothing to do with
this problem.

* <http://validator.w3.org/>

Signature

Andrew Thompson
http://www.physci.org/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.