How to show chinese char form db in my jsp portlet?

How to show chinese char form db in my jsp portlet?
I had tried to set contentType in renderResponse, but itn't work ..

Bent,
You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
Peter

Similar Messages

  • How to run the parameter form example report :pform_report.jsp

    how to run the parameter form example report : pform_report.jsp ?
    I got these error message:
    Reports Error Page
    Sat Oct 18 11:58:24 CST 2003
    javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/�� ' PI with the name 'xml' can occur only in the beginning of the document.'.
    javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/��
    PI with the name 'xml' can occur only in the beginning of the document.'.
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at examples.tools._pform__report._jspService(_pform__report.java:79)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:66)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:539)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:285)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:771)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:796)
         at java.lang.Thread.run(Thread.java:484)

    repost !
    please help!

  • How to show Chinese (two-byte) in Creative MediaSou

    Need Help:
    I got buch Chinese mp3 with chinese characters as file name/track name. Creative MediaSource 2.03.29 will not show Chinese characters, only codes. I was forced to use MS media player, which shown proper characters.
    Anyone got idea how to get it works with two bytes chinese big-5 code?
    Thanks:-)
    Joseph

    HomeAustin,
    Change your Regional langauge setting in Control Panel to support Chinese PRC. That should have MediaSource displaying the lanaguage.
    Jason

  • Problem in showing chinese char from a Unicode based text file [*.txt]

    Hi All!
    There are some chinese characters stored in a text file [*.txt]. I'm using "Arial Unicode MS" font to show chinese in text file. The text file is showing chinese charatcres. But when I read this file and want to show each line of chinese characters. My program is showing some garbage. Here is my sample code:
    //arg[0] is a unicode text file name
    UIManager.put("OptionPane.messageFont", new Font("Arial Unicode MS", Font.PLAIN, 11));
    String chinesesample = "\u4eac \u5582";
    //this message box is showing chinese
    JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
    BufferedReader obj_line = new BufferedReader(new FileReader(args[0]),16);
        String data = null;
        while (obj_line.ready()) {
          data = new String(obj_line.readLine().getBytes("Unicode"));
          obj_line.readLine();
          JOptionPane.showMessageDialog(null, data);
        }But this code is not showing the exact chinese characters stored in text file.
    Regards,
    KS

    FileReader does not support setting a charset:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileReader.html
    Convenience class for reading character files. The constructors of this
    class assume that the default character encoding and the default byte-
    buffer size are appropriate. To specify these values yourself, construct
    an InputStreamReader on a FileInputStream.
    So our BufferedReader should be constructed from InputStreamReader on a FileInputStream.
                   BufferedReader br = new BufferedReader(
                          new InputStreamReader(new FileInputStream("out.txt"), "UTF8"));Here is an example:
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    // import java.io.FileReader; // no need for this
    import java.io.InputStreamReader;
    import javax.swing.JOptionPane;
    public class DocumentRenderer{
         public static void main(String[] args){
              try{
                   String chinesesample = "\u4eac \u5582\n";
                   System.out.print(chinesesample);
                   FileOutputStream fo = new FileOutputStream(new File("out.txt"));
                   fo.write(chinesesample.getBytes("UTF8"));
                   fo.close();
                   BufferedReader br = new BufferedReader(
                          new InputStreamReader(new FileInputStream("out.txt"), "UTF8"));
                   JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
                   chinesesample = br.readLine();
                   JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
                   fo = new FileOutputStream(new File("out.txt"));
                   fo.write(chinesesample.getBytes("UTF8"));
                   fo.close();
              }catch(Exception e){
    }

  • How to show photo in form portlet when using ORDSYS.ORDIMG?

    I built a Form based on table that has ORDSYS.ORDIMG column.
    When I query the form,the photo shows. And then I publish this
    form to portal and add in a page. But the form portlet doesn't
    show picture, when I query. Why? What should I do?
    Please help me. I'm looking forward to hearing from all of
    you
    Thank you,
    Sirin

    Well I don't know how to use the ORDSYS.
    So I've created a solution myself using javascript.
    I created a table with a column "image" as VARCHAR2. Using the portal image fieldtype (in a form) will store the image name in the table-column and the actual image in a portal own table.
    1) First in the form added a new field (label only)
    2) The label is "<IMG SRC=/images/blank.gif NAME=test>"
    NB. I'm not sure if I added the blank image myself or not but it is a small gif in the images directory with only a transparent color.
    3) In the Additional PL/SQL Code section ... after displaying the page I added the following code;
    DECLARE
    v_image VARCHAR2(200);
    BEGIN
    v_image := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_<imagefieldname>');
    IF v_plaatje IS NOT NULL THEN
    HTP.PRINT('<script language="JavaScript">
    if(document.images)
    document.test.src="http://<hostname>/pls/portal30/docs/'||v_image||'";
    </script>');
    END IF;
    END;
    Regards,
    Arnoud Koot
    Oracle Web Consultant
    http://www.thedoc.nl

  • How to show hyperlink in forms

    I have two fields, companyname and webaddress, in a table. I want to execute all rows in the form in the following way:
    Companyname webaddress
    Oracle [www.oracle.com|http://www.oracle.com]
    Microsoft [www.microsoft.com|http://www.microsoft.com]
    When I will click on the weblink, the browser will open with that address.
    I read oracle forms demo but that does not help my problem. Oracle never explains clearly.
    Could anyone please tell me how can I do it? Is there any easy way?
    Edited by: srtusar on 20-Feb-2009 09:52

    I am afraid that Oracle has any solution regarding this issue. They are making developer suite complicated day by day without resolving any problems.
    Anyway, if a table contains 2 fields- name and web_address and these two fields may contain many company names and their web addresses. If I move the mouse over one address and click, it should open a new browser with its web address , as example www.oracle.com. But it can not open. It tries to open with "http://localhost:8889/forms/www.oracle.com" and it can not find www.oracle.com because it finds within http://localhost:8889/forms/.
    The problem is that Oracle does not explain anything about it anywhere, even their documentaion is very poor so that we can troubleshoot.
    Does anyone have any idea, please?

  • How to show/hide a form field?

    Hi all,
    Is it possible to programaticlly show/hide a from input field at runtime?
    best

    You can use javascript to achieve this and following is the code I'm using in one of the forms to hide a field when this form is being opened.
    ..after displaying page...
    declare
    v_id number(10);
    begin
    v_id:=p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_index => 1
    If v_id is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    function get_index(p_name) {
    var i;
    for (i=1; i<document.forms[0].length; i++){
    if ( document.forms[0].elements.name == p_name) {
    return i;
    var j = get_index("FORM_NAME.DEFAULT.FIELD_NAME.01");
    document.forms[0].elements[j].style.visibility="hidden";
    </SCRIPT>');
    End If;
    -Krishnamurthy

  • How to show Quick View form on the Form's Header instead of in form body?

    Hi Experts,
    I am having requirement to show the Quick view form on the form's header in MS CRM 2013. Is it possible?
    If yes please help me out to achieve this.
    Thanks
    Baji Rahaman

    Thanks Andrii for quick response.
    I am having look up control on the form and I would like to show the related information in header.
    Is there any alternative way to achieve this.
    Thanks
    Baji Rahaman

  • How to show chinese characters in Itunes.

    I downloaded Itunes for windows XP on my work desktop but it doesn't show the chinese characters instead it shows boxes. I have Itunes on my Powerbook and I didn't have to do anything special and the chinese characters are shown.

    I downloaded Itunes for windows XP on my work desktop
    but it doesn't show the chinese characters instead it
    shows boxes. I have Itunes on my Powerbook and I
    didn't have to do anything special and the chinese
    characters are shown.
    In WinXP, you do need to do something special to enable Chinese support. See this page:
    http://www.microsoft.com/globaldev/handson/user/xpintlsupp.mspx

  • How to show Chinese named file with JFileChooser

    I have a simple java code that could open a file and copy it to another directory. My problem is that if running it with a Chinese Windows 2000 OS, when select "File Open" and try to locate the file from a folder, the files with Chinese name could not be properly displayed. The weired part is that if you choose the Chinese named file, it could be shown correctly in the file name panel.
    When my application starts on a Chinese WIN2000 OS, saw warning as "Default charset GBK not supported, using ISO-8859-1 instead"

    You might try to look here for some clues
    http://forum.java.sun.com/thread.jsp?thread=482071&forum=57&message=2249728
    or try the Internationlization forum
    http://forum.java.sun.com/forum.jsp?forum=16

  • Insert picture in a blob column and show in oracle forms

    hi ,
    please help me with this
    I am trying to insert a picture into a blob column of a table and show that in oracle forms , but not able to do it .
    I am using version 10g for both database and forms .
    Please tell me how to insert a picture in a blob column that is stored in my 'c:\test' folder
    and also how to show that in forms .

    To populate the Image Item you have to use the Webutil Client_Read_Image_File() built-in.
    here
    http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/builtn_r/readimag.html&vtTopicId=
    To add an Image Item to your block based on the table that contains the BLOB column, then give this Image Item the BLOB column name.
    So that, all you have to do is to execute query on that block.

  • How to input chinese in ipod touch?

    When I use safari to view some chinese web,I need input some chinese chars.
    So how to input chinese chars in ipod touch?
    Thanks.
    --Jones

    Don't try to jailbreak it 3d party software is not always 100% qualified stuff. E.g., yesterday I've put Russian localization pack on my iPod and got a lot of "surprises": crashing keyboards & iPod apps, crappy not smoothed fonts etc.
    There is also no Russian || Ukrainian keyboard on iPod. That's Ok, but adding / changing contact details in the Address Book or editing iCal event is a really weird thing. Why should I use translitaration or write everything non-native language?! That's stupid that localization doesn't include language inputs.

  • How to show more than one record at a form-like style report?

    Hi All,
    I developed a form-like style report
    I want it to show more than one record at once (At the same page)
    I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
    but when I close the property palete and open it agian the value is returned to 1 !!!
    how to show more than one record at the same page?????
    Thank u

    Hi,
    there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
    Regards
    Rainer

  • How to show filtered parameter in dropdown form in crm 2013

    Hi,
    I want to create a report in crm 2013. When I report is run then filtered parameter fill record from database in dropdown form and when I select record from dropdown then generate report of selected record. Please tell me how to show record in filtered parameter
    from database within crm. In below image paramter is text field. How to auto fill filtered parameter from database.

    Hi Aamir,
    Check if the below link helps!!
    https://social.microsoft.com/Forums/en-US/ad8a3bc2-dbec-4597-adfd-8bd6c34f5e9a/drop-down-parameter-in-crm-2011-custom-report?forum=crm
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • How to Show BI report in adf form ?

    How to show bi Report in adf form ?
    (i dont show dashboard in adf form

    Hi,
    check this : http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
    there are some other helpful links as well:
    http://brendenanstey.blogspot.com/2007/01/adf-faces-and-xml-publisher-success.html
    http://technology.amis.nl/blog/2296/building-a-report-in-xml-publisher
    http://technology.amis.nl/blog/1597/xml-publisher-display-input-parameter-sqllims
    ~Abhijit

Maybe you are looking for

  • Can't log out from iCloud

    Hi. I have a problem. Several times a day, my iPad try to log it self into iCloud on a mail I don't use anymore. And the problem is, that I can't remove it, cuz I don't have the password anymore. I've tried to recover it, but it won't send any mail t

  • CS3 (WIN) Cross referencing script

    Today I downloaded a cross-referencing script created by Teus do Jong, and I have found it to be of great use, but when it comes to using the script with linked and formatted copy (Word) and tables (Excel), it does not work (destinations are lost). I

  • "Master" AddressBook for multiple user accounts?

    I have three user accounts on my mac. Is it possible to set up the AddressBook so that all users have access to the same information? In other words, I would like to have just one "master" address book, so to speak, which can be accessed (read and wr

  • I want form to open with fields automatically highlighted.

    I am creating a form that, when opened, I want the fill-in fields to automatically be highlighted. When I open the form in Acrobat, there is checkbox at the upper right side to check - it says "Highlight Fields" - by default, it is not checked.  Is t

  • Jsp cvs problem

    Hi, when i update a .jsp file from cvs, it is not processed by the AppXRay (NitroX 2.1M3, eclipse 3.0.2). However, if i also update a .java file, the build process is started and all new files are checked. What can i do to get eclipse to start the bu