Displaying UTF8 unicode on JSP

hi,
i have followed the tutorial on http://java.sun.com/docs/books/tutorial/i18n/text/stream.html for how to display unicode on java application.
now, i want to output the unicode to my jsp pages, but it displays distorted or wrong characters. can some1 pls advice me what went wrong ?
it supposed to display (sasa), but it displays (?u?u) .
pls help.
thanks

Hi,
I am using websphere with jsp 1.1 which does not include the method mentionned above.
I want to display utf8 characters in my browser.
Before, I was using JSP 1.0 and the mata tags with charset="utf-8" and it was working very well.
What's the differenc ewith JSP 1.1 ?

Similar Messages

  • The JSP WYSIWYG Editor can't display most Unicode characters

    Eclipse supports display of Unicode characters very well since version 3. However, NitroX couldn't display most most of them. Well, besides characters from other non-Western European languages, NitroX can't even display characters that it's supposed to support. Well, that's what I think so. I mean, when we type the & character, we have the whole list of character entity references amongst which we could find ∧ ∇ ∨ → but which are not displayed correctly. And many more are in this case.
    Is this a feature or a bug? By "feature", it means that we can't get them in free version.

    I have exactly the same problem. I support web pages for 25 European countries. I've not seen Nitrox support any unicode characters. Until M7 answers this question or fixes the editor, you can use the Eclipse editor to see and edit the text.

  • Display Chinese characters on JSP under WebLogic 6.1

    We've recently migrated from WebLogic 5.1 to 6.1 and we found that all those
    Chinese JSP pages cannot display properly under Solaris, but it works on
    some Windows 2000 machines (but everything work under 5.1).
    However we haven't made any special changes to any configuration in all
    these machines. Why some of them work and some of them doesn't ? Those W2K
    machines work are running English version of Windows 2000, but with Chinese
    character sets installed.
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...

    Hi,
    I have the same problem here. I am using weblogic 6.1 on W2k server. I save
    prpblem from those static contents in the jsp file, but those data in chinese
    from oracle database is working fine. I create a simple jsp file just with a simple
    text "hello world" in chinese, I save one as a html and one as a jsp. When I run
    this two under weblogic 6.1, the html file display correctly but the jsp is not.
    I try "UTF-8", "GB2312" and other charsets but all not working with jsp files.
    Please help.... Thank you.
    yanglin
    "Nohmenn BABAI" <[email protected]> wrote:
    >
    >
    Dear Ricky,
    Could you please check the following :
    If you are on Sun Solaris systems please check the LC values of your
    =
    environment as shown in example below.
    This is the cause of many troubles due to the fact that the JVM =
    considers these parameters to encode.
    (example given for Italian display, so I guess for you this will be =
    Big5)
    On Solaris 7 the right settings are=20
    LC_COLLATE=3Dit.ISO8859-15
    LC_CTYPE=3Dit.ISO8859-15
    LC_MESSAGES=3Dit
    LC_MONETARY=3Dit.ISO8859-15
    LC_NUMERIC=3Dit.ISO8859-15
    LC_TIME=3Dit.ISO8859-15=20
    on Solaris 8=20
    LC_COLLATE=3Dit_IT.ISO8859-1
    LC_CTYPE=3Dit_IT.ISO8859-1
    LC_MESSAGES=3Dit
    LC_MOLC_COLLATE=3Dit.ISO8859-15
    LC_NUMERIC=3Dit_IT.ISO8859-1
    LC_TIME=3Dit_IT.ISO8859-1
    Also another point to check is=20
    In All Weblogic Releases :
    You can add the flag -Dfile.encoding=3DUTF8 in the startup line to force
    =
    default encoding in the JVM
    In your Webloigc 5.1 property file
    # WEBLOGIC CHARACTERS PROPERTIES
    weblogic.httpd.inputCharset./russian/*=3DISO-8859-5
    weblogic.httpd.inputCharset./utf/*=3DUTF-8
    weblogic.httpd.inputCharset./french/*=3DISO-8859-1
    weblogic.httpd.inputCharset./japan*=3DShift_JIS
    # FOR ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE
    #weblogic.httpd.inputCharset./*=3DUTF-8
    In your weblogic.xml's Weblogic 6.1 and later :
    <weblogic-web-app>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/japan*</resource-path>=20
    <java-charset-name>Shift_JIS</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    =20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/russian*</resource-path>=20
    <java-charset-name>ISO-8859-5</java-charset-name>=20
    </input-charset>=20
    </charset-params>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/french*</resource-path>=20
    <java-charset-name>ISO-8859-1</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    <charset-params>=20
    <input-charset>=20
    <resource-path>/UTF-8*</resource-path>=20
    <java-charset-name>UTF-8</java-charset-name>=20
    </input-charset>=20
    </charset-params> =20
    </weblogic-web-app>
    As you may have noted, the ressouce-path is starting from root, and =
    after you insert the directory where you want to define de encoding.
    This will influence the JVM when performing a compilation (please clean
    =
    the temp directories from any compiled jsps before re-starting your =
    WLS).
    Please reply in the forum is you still face the problem after all these
    =
    modifications.
    Best regards
    Nohmenn BABAI
    BEA EMEA Technical Support Engineer
    "Ricky Wong" <[email protected]> a =E9crit dans le message de news:
    =
    [email protected]...
    We've recently migrated from WebLogic 5.1 to 6.1 and we found thatall =
    those
    Chinese JSP pages cannot display properly under Solaris, but it works=
    on
    some Windows 2000 machines (but everything work under 5.1).
    =20
    However we haven't made any special changes to any configuration in=
    all
    these machines. Why some of them work and some of them doesn't ? Those=
    W2K
    machines work are running English version of Windows 2000, but with=
    Chinese
    character sets installed.
    =20
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    =20
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...
    =20
    =20<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV><FONT face=3DArial size=3D2>Dear Ricky,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Could you please check the following
    =
    :</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>If you are on Sun Solaris systems =
    please check the=20
    <STRONG>LC</STRONG> values of your environment as shown in example=20
    below.<BR>This is the cause of many troubles due to the fact that the
    =
    JVM=20
    considers these parameters to encode.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>(example given for Italian display,
    so =
    I guess for=20
    you this will be <STRONG>Big5</STRONG>)</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>On
    =
    Solaris 7 the=20
    right settings are</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit.ISO8859-15<BR>LC_CTYPE=3Dit.ISO8859-15<BR>LC_M=
    ESSAGES=3Dit<BR>LC_MONETARY=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit.ISO8859-15=
    <BR>LC_TIME=3Dit.ISO8859-15=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>on =
    Solaris 8</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit_IT.ISO8859-1<BR>LC_CTYPE=3Dit_IT.ISO8859-1<BR>=
    LC_MESSAGES=3Dit<BR>LC_MOLC_COLLATE=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit_IT=
    ..ISO8859-1<BR>LC_TIME=3Dit_IT.ISO8859-1</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>Also another point to check
    =
    is</STRONG>=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>In All Weblogic Releases :<BR>You can
    =
    add the flag=20
    -Dfile.encoding=3DUTF8 in the startup line to force default encoding
    in =
    the=20
    JVM</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>In your Webloigc 5.1 property=20
    file</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2># # # # # # # # # # # # # # # # # #
    # # =
    # # # # # #=20
    # # # # # # # #<BR># WEBLOGIC CHARACTERS PROPERTIES<BR>#=20
    ------------------------------------------------<BR>weblogic.httpd.inputC=
    harset./russian/*=3DISO-8859-5<BR>weblogic.httpd.inputCharset./utf/*=3DUT=
    F-8<BR>weblogic.httpd.inputCharset./french/*=3DISO-8859-1<BR>weblogic.htt=
    pd.inputCharset./japan*=3DShift_JIS<BR>#=20
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #<BR>#
    =
    FOR=20
    ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE<BR>#=20
    ------------------------------------------------<BR>#weblogic.httpd.input=
    Charset./*=3DUTF-8</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><STRONG>In your weblogic.xml's =
    Weblogic 6.1 and=20
    later :</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><weblogic-web-app> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/japan*</resource-path>=20
    <BR><java-charset-name>Shift_JIS</java-charset-name>=20
    <BR></input-charset>=20
    <BR></charset-params><BR> <BR><charset-params>=20
    <BR><input-charset>=20
    <BR><resource-path>/russian*</resource-path>=20
    <BR><java-charset-name>ISO-8859-5</java-charset-name>=20
    <BR></input-charset> <BR></charset-params> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/french*</resource-path>=20
    <BR><java-charset-name>ISO-8859-1</java-charset-name>=20
    <BR></input-charset> <BR></charset-params></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/UTF-8*</resource-path>=20
    <BR><java-charset-name>UTF-8</java-charset-name>=20
    <BR></input-charset> <BR></charset-params>  =
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></weblogic-web-app></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><EM>As you may have noted, the =
    ressouce-path is=20
    starting from root, and after you insert the directory where you want
    to =
    define=20
    de encoding.</EM></FONT></DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><FONT face=3DArial size=3D2>This will influence the JVM when =
    performing a=20
    compilation (please clean the temp directories from any compiled jsps
    =
    before=20
    re-starting your WLS).</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Please reply in the forum is you still
    =
    face the=20
    problem after all these modifications.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Nohmenn BABAI</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>BEA EMEA Technical Support =
    Engineer</FONT></DIV>
    <DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>"Ricky Wong" <</FONT><A=20
    href=3D"mailto:[email protected]"><FONT face=3DArial=20
    size=3D2>[email protected]</FONT></A><FONT face=3DArial =
    size=3D2>> a =E9crit dans=20
    le message de news: </FONT><A =
    href=3D"mailto:[email protected]"><FONT=20
    face=3DArial size=3D2>[email protected]</FONT></A><FONT =
    face=3DArial=20
    size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> We've recently
    =
    migrated from=20
    WebLogic 5.1 to 6.1 and we found that all those<BR>> Chinese JSP =
    pages cannot=20
    display properly under Solaris, but it works on<BR>> some Windows
    =
    2000=20
    machines (but everything work under 5.1).<BR>> <BR>> However we
    =
    haven't=20
    made any special changes to any configuration in all<BR>> these =
    machines. Why=20
    some of them work and some of them doesn't ? Those W2K<BR>> machines
    =
    work are=20
    running English version of Windows 2000, but with Chinese<BR>> =
    character sets=20
    installed.<BR>> <BR>> Our Chinese JSP pages use big5 character
    =
    encoding=20
    instead of unicode.<BR>> <BR>> I've read a number of messages in
    =
    this=20
    newsgroup but I'm still very<BR>> confusing on how to fix the problem
    =
    ....<BR>> <BR>> </FONT></BODY></HTML>

  • How to set Weblogic 5.1 server to display UTF8 characters

    Hi all,
    Does anybody know how to set up Weblogic 5.1 server in order to display UTF8
    characters such as Japanese characters?
    I am able to display utf8 in Tomcat but not in Weblogic. All I did for
    Tomcat is to change the content type of the servlets.
    Thank you for your help.
    Danh

    DO you have servlets which print utf-8 data to the client?
    If yes then you can just call response.setContentType("text/html;
    charset=UTF-8");
    and the response will look as expected.
    for jsps :
    <%@ page contentType="text/html; charset=UTF-8" %> should do the trick.
    Nagesh
    Michael wrote:
    I have the same problem with 7.0. Did you fine a solution?
    I'll be very interested to know how you fixed it.
    "Danh Hoai" <[email protected]> wrote:
    Hi all,
    Does anybody know how to set up Weblogic 5.1 server in order to display
    UTF8
    characters such as Japanese characters?
    I am able to display utf8 in Tomcat but not in Weblogic. All I did for
    Tomcat is to change the content type of the servlets.
    Thank you for your help.
    Danh

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • Display Image in another jsp

    hello,
    I am facing a design issue of so as to how to go about displaying an image which i am retrieving from database.
    I have a SubmitDoc.jsp which takes as input the doc id which i need to display looks like :
    *SubmitDoc.jsp*
    <FORM METHOD=POST ACTION="Retrieval">
    Enter Document ID to Retrieve: <INPUT TYPE=TEXT NAME=DOCID SIZE=20/><BR>
    <P><INPUT TYPE=SUBMIT></P>
    </FORM>I have my Retrieval servlet which access the DB and gets the binary stream for the image data based on DOCID.
    Now i try to forward result to a different jsp in order to display the binary data from the servlet.
    something like this :
    InputStream readImg = rs.getBinaryStream("DOCUMENT");
    response.setContentType("image/jpg");
    request.setAttribute("ImageData", readImg);
    // response.getOutputStream().write(rb,0,len);
    RequestDispatcher rd = request.getRequestDispatcher("DisplayDoc.jsp");
    rd.forward( request, response );What code should i put in DisplayDoc.jsp to show the image there.
    Any ideas how do i go about ?
    Thanks,

    What code should i put in DisplayDoc.jsp to show the image there.The same code you put in any html page to show an image:
    <img src="urlToDownloadImageFrom"/>In effect you have two requests.
    One for the JSP page, and then another for the image.
    So often what you find is the tag on your page needs to pass the id as well
    <img src="/ImageServlet?docId=abc123"/>

  • How to display uploaded image in jsp page.

    Hello,
    I am using struts 1.2.9 and and have uploaded image on the server. Now what I want to do display the image in jsp page after clicking on one link in jsp. I have tried many thing to display image in jsp page. But I am getting an error during displaying image in jsp. I have displayed absolute path in servlet. and used InputStream and outputstream to display image in jsp page.
    Can any one help.
    Thanks in advance
    Manveer Singh

    Follow this. This topic is very popular recently on the forum.

  • Display request contents in JSP page

    i need to display the contents in a request in my JSP.
    meaning:
    i have a hashmap (containing string and a list) coming from the EJB tier to struts action in an event response object, I'm sure that the request has these values. cuz i tested it in struts action using the following code:
    HashMap result = (HashMap)((EventResponseSupport)request.getAttribute(WebKeys.EVENT_RESPONSE)).getPayload();
    System.out.println("Sponsor name = " + result.get("sponsor"));I am able to print it in the console but i need to know how to display it in the jsp. i tried many things but i can't get it right.
    first i need to display the string and then i need to iterate through the list to display its contents in a table.
    any help would be appreciated.

    Kindly use JSP Scriplet to load the HashMap into the Page Context.
    Then you can use the Struts iterate tags to paint the contents of the HashMap

  • Display uploaded file on JSP page

    Hi All,
    I want to display uploaded file in JSP.
    Initially I am displaying File Name after saving the file & click on edit link.
    i.e on JSP Page I have File Upload component & save button.With that save button I am saving my file to databse.
    So when I click on edit link I am getting that file name from Databse then I am displaying it.
    But now I want to display uploaded file name on JSP page before saving to databse.i.e I will have browse & Upload button.When I click on browse button I will open window from where I will select file.
    This is working fine as,<x:inputFileUpload id="uploadfile" value="#{errorLotBean.file}" storage="file"></x:inputFileUpload>
    But when I click on upload button that uploaded file should be displyed there only.Can anyone please tell me how to do this ?
    Thanks
    Sandip

    Thanks a lot Siefert,
    I tried the way mentioned in URL.
    But what if I want to display all uploaded file on my screen.
    i.e. If user click on browse & select File A then click on upload button.
    (Here the File A will be displayed) with code
    <h:outputtext value="#{benaName.file.name}"
    But what if after displaying File A if user decide to upload another file File B.
    How to display that ?
    with <h:outputtext value="#{benaName.file.name}" its dispalying one file only.
    Thanks
    Sandip

  • How to display utf8 characters in sql developer

    Is there a setting I need to change in sql developer in order to display utf8 characters?
    I am seeing weird characters when displaying chinise/arabic characters in sql developer. I can display the same data just fine in Putty ( I changed the following setting in putty before I was able to display utf8 characters ok: Windows->Translation and selected UTF8) .
    Thanks,
    SK

    *1. OS version and oracle version*
    Windows XP Professional/Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    *2. NLS settings for the database*
    AL32UTF8
    *3. Output from sqlplus showing the UTF8 characters*
    \什么是统码
    ANSI
    \什么是统码
    يونی‌کُد چيست؟.utf8
    *4. Same output from SQLDeveloper*
    \什么是统码     ANSI
    \什么是统码     ÙŠÙˆÙ†ÛŒâ€ŒÚ©ÙØ¯ چيست؟.utf8
    Thanks,
    Salem

  • How to display Arabic content in JSP ?

    Hi all,
    I used the following encoding method to display arabic content in JSP page.
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    I also set -Dfile encoding=ISO-8859-6 in the JVM Options.As a result the arabic data is getting displayed .
    Variable "data" contains the actual arabic data.
    function updateArabicData(data){
    try{
    document.getElementById('divtag').innerHTML=""+data;
    }catch(err){
    <html>
    <body>
    <div id="divtag" lang="ar-sa"></div>
    </body>
    </html>
    But the problem is the arabic data getting displayed in JSP (within the <div>)seems to be jumbled up.The users say that the arabic words within a single sentence are not arranged correctly.They are mixed up.Please help me with a solution.
    Edited by: Alance on May 27, 2010 5:34 AM

    Data is retrieved as follows
    if(msg.getField("GEN_UNICODE_MESSAGE_1")!=null){
    resultString=resultString+"N"+""+new String((byte[])msg.getField("GEN_UNICODE_MESSAGE_1").value.get(0),"ISO-8859-6");
    with content Type set as response.setContentType("text/html;charset=ISO-8859-6");
    ISO-8859-6 -since the data contains arabic news.
    Edited by: Alance on May 27, 2010 11:05 PM

  • How do i display jasper reports using jsp

    Can anyone help me to display jasper reports in jsp pages
    Thanx in advance

    hi
    Thank you for such a great answer.
    I have a problem here,
    When i generate report using this code all other report formats are generated very good, but the html report is not generated properly. i get nullpx in the img src e.g
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    Please help me
    and
    Thanks in advance
    snkr
    Following is the html code of the generated report.
    start--------------------------------------
    =======================================================
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <style type="text/css">
    a {text-decoration: none}
    </style>
    </head>
    <body text="#000000" link="#000000" alink="#000000" vlink="#000000">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%"> </td><td align="center">
    <a name="JR_PAGE_ANCHOR_0_1"/>
    <table style="width: 620px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
    <tr>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 135px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 45px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 30px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 60px;"/></td>
    <td colspan="5" valign="middle" style="text-align: center;"><span style="font-family: sansserif; font-size: 20.0px; font-weight: bold;">
                       Report Background Demo
    </span></td>
    <td colspan="2"><img alt="" src="nullpx" style="width: 65px; height: 60px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Parent_ID</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Product_ID:</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Name:</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Colour Cosmetcis</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Lipsticks</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-321</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Eye Shadow</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Shankar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Parikchya</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-323</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">hair Cleaner</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Kumar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Magilla Gorilla</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">astrigent</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test1</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 96px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 170px;"/></td>
    </tr>
    </table>
    </td><td width="50%"> </td></tr>
    </table>
    </body>
    </html>
    end------------------------------
    ========================================================

  • How to display stored image in jsp  in ie7???

    i am using internet explore7. i have a problem when i am displaying an image in jsp its not properly coming. this image and image is stored in database.
    image is stored in database using "binarystream" .
    i am just simply calling the image path and using the html image display tag.
    <img src="<%=fileIpath%>" but image is not coming properly but this image is showing properly in lower ie version.
    Can anyone help me???

    can anyone reply this question??Appearently no.
    It might be that the question is not interesting enough to attract people.
    Or it might be that the details you provided do no suffice and some important pieces of information are missing. For eample: what are the contents of the variable? If you save the generated page, what do you get?

  • Any other way to display the images in jsp

    Dear All,
    I had a program in get the image in database and display the image in jsp file.
    Generally we are using
    setContenttype(image) and write the binary values in jsp file,
    is there any other way to store the jpeg file in speciefied folder and view the jsp file

    Is there any other way to play the shuffle in a car if it doesn't have an aux facility???
    There is not.
    Or I wondered if you could play it through a smart tv...or do you need an apple tv box???
    Not with the Apple TV, but if the Smart TV has an AUX port, you can connect it that way.
    B-rock

  • [SOLVED] Can't display extended unicode

    Hello,
    My arch install cannot render extended unicode characters. Example:
    http://i.imgur.com/3VNpkkI.png
    I first though it was a font issue, but this website tells me that I have many, many fonts that should display that character:
    http://www.fileformat.info/info/unicode … %2B0CA0%29
    It renders nowhere on my system. Not on firefox, not on terminal, not on gedit, nothing. I am sure it is not a font issue, as I have tried Arial, Times New Roman, DejaVu sans and other that are suppsed to have extended Unicode support.
    Here is the output of locale:
    [03:46:05 ~]$ locale
    LANG=en_CA.utf8
    LC_CTYPE="en_CA.utf8"
    LC_NUMERIC=en_CA.utf8
    LC_TIME=en_CA.utf8
    LC_COLLATE="en_CA.utf8"
    LC_MONETARY=en_CA.utf8
    LC_MESSAGES="en_CA.utf8"
    LC_PAPER=en_CA.utf8
    LC_NAME="en_CA.utf8"
    LC_ADDRESS="en_CA.utf8"
    LC_TELEPHONE="en_CA.utf8"
    LC_MEASUREMENT=en_CA.utf8
    LC_IDENTIFICATION="en_CA.utf8"
    LC_ALL=
    Thoughts?
    Last edited by morphheus (2014-08-28 09:59:52)

    Try https://wiki.archlinux.org/index.php/Fonts#Indic
    The Great Arch Linux wiki wrote:ttf-indic-otf - Indic OpenType Fonts collection (containing ttf-freebanglafont)
        (This one contains a "look of disapproval" that might be more to your liking than the bdf-unifont one mentioned elsewhere in this document)

Maybe you are looking for

  • Setup mail server

    I have problems setting up my mailserver. Is there anyone out there who can help me, maybe with server admin directly to my server.

  • Cohost P6R8 and Enterprise Manager ?

    Both these products rely on the Fusion Middleware infrastructure. For a small installation, is it possible to leverage the Middleware installation from Oracle Enterprise Manager (12c) to also host EPPM R8 ? I'd really prefer to manage only one produc

  • Fact's and dimension tables

    Hi Friend's I joined institute to learn OBIEE one of my institute mate has asked me one question that is. What will be the Fact and Dimesion tables for Financial projects, please tell me min 6 to 7 tables.. Regard's Anusha

  • Smart View Refresh All and Hidden Tabs

    When one of my users does a Refresh All in Excel all of his hidden tabs become unhidden. Is there a setting in Smart View that can stop this from happening? Todd

  • Fatal error splitpanels.cpp line 1148

    I'm using LV 8.2.1 and I'm getting a fatal error.  I've tried re-loacting my code in order to purge it, but to no avail. The error message says "SplitPanels.cpp" Fatal error line 1148.... Any idea what's going on here? It happens when I receive a dou