Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Text appears in "View Source" but not on screen

Reply
Thread Tools

Text appears in "View Source" but not on screen

 
 
swetha
Guest
Posts: n/a
 
      12-02-2007
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
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      12-02-2007
On Sun, 2 Dec 2007 03:53:50 -0800 (PST), swetha
<(E-Mail Removed)> 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.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-02-2007
swetha wrote:
>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/>

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200712/1

 
Reply With Quote
 
swetha
Guest
Posts: n/a
 
      12-02-2007
On Dec 2, 3:31 pm, Roedy Green <(E-Mail Removed)>
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
>
> 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. seehttp://mindprod.com/applet/fontshower.html
>
> 3. Make sure that the Arabic-capable font is installed.
> Seehttp://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.


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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Something appears on Screen, "Aging" that does not disappears. Chaudhry.Nijjhar Computer Support 9 06-12-2009 01:09 PM
Authentication login screen appears on both frames of the framset dana lees ASP .Net 9 12-14-2005 06:25 AM
Label Appears but not Button mike ASP .Net 3 05-19-2004 08:01 AM
WinXP Welcome screen appears after installing VS .Net 2K3 Grahammer ASP .Net 0 11-08-2003 05:38 PM
'my computer' box appears on screen at start up Kevin Speed Computer Support 3 09-18-2003 07:59 PM



Advertisments