Jsp call success, http 500 servlet not display

in the project, i have a HelloServlet in application sources
SayHello.jsp in Web content in JDeveloper, i successfully run them
result is sayhello pass parameter through get in form action called HelloServlet
But, After deployed to OC4J standalone
http://computer_name:8888/Helloworld-Exercise-root/SayHello.jsp
can successfully call, i type the name in field box
it appear http 500 when change to
http://computer_name:8888/Helloworld-Exercise-root/SayHello?person=baby
What's wrong with this? how to fix it?

I can successfully run in embedded oc4j and display the parameter i passed through text field, but error in standalone oc4j
http://192.168.0.1:8988/Helloworld-Exercise-root/SayHello.jsp
http://192.168.0.1:8988/Helloworld-Exercise-root/SayHello?person=mandy
The servlet has received a GET. This is the reply.
Hello, mandy!

Similar Messages

  • Unable to go any https site using FF and safari. Mac OS 10.6.7. Https sites are not displayed at all.

    I was able to do all https sites before.  Recently I have notied that whenever I go to any https site , the site is not displayed at all.
    FF 4.0.1  and safari
    e.g. go to www.skype.com and click on login link
    can't login to FB
    Can't display https://mail.yahoo.com
    funny thing is  I can't even go to  http://www.apple.com
    I get blank page and the browser keeps spinning.
    Cleared all cache.
    Pl. help.
    thank you so much for your help.

    Those sites display correctly provided they supply HTTPS. Which Yahoo does (HTTPS) and Apple doesn't on their main page (it's HTTP), but the forums here are HTTPS.
    Go to your KeyChain Access.
    Under Preferences > Certificates set the following
    1: Best Attempt
    2: Best Attempt
    3: OCSP
    Reboot the machine.
    When you request a secure site it will check the certificates immediately instead of using Apple's outdated lists which require Apple to include them in a Software Update.
    If someone is using these outdates certificates maliciously then that's likely the problem.
    Also install the  HTTPS Everywhere Add-on for Firefox, to ask websites to provide HTTPS. They always can't do it because of third party unencrypted content.
    Also when that's finished. Run all the cleaning and maintenance aspects of the free OnyX and reboot (you can cancel reboots in between jobs)
    Does a good job of cleaning out gremlins.
    http://www.titanium.free.fr/

  • Query in Servlet not displaying results in html table

    Hi,
    I am aware that putting html in a servlet is not good practice. In my case, it is just for testing purposes.
    Environment: WLS 12c on Windows, DB 11.2.0.3
    I created an html form and a servlet in a Dynamic Web Project. The form parameters are sent to the servlet,
    but the results are not being displayed.
    HTML form:
    <input text name="p_1"
    Servlet:
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    * Servlet implementation class QueryServlet
    @WebServlet("/QueryServlet")
    public class QueryServlet extends HttpServlet {
        private static final long serialVersionUID = 1L;
         * @see HttpServlet#HttpServlet()
        public QueryServlet() {
            super();
            // TODO Auto-generated constructor stub
         * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            // TODO Auto-generated method stub
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            Connection conn = null;
            Statement stmt = null;
            try {
                conn = DriverManager.getConnection("jdbc:oracle:thin:@home-server:1521:val01", "USER", "PW");
                stmt = conn.createStatement();
    String sqlStr = "SELECT....
    ... WHERE p_1 =
    +  "'" + request.getParameter("p_1") + "'"
    out.println("<html><head><title>Query Results</title></head><body>");
                out.println("<p>Your query is: " + sqlStr + "</p>");
                out.println("<p>Your are connected to: " + conn + "</p>");
    --> OUTPUT ONLY UNTIL HERE <--           
                // Get data
                ResultSet rset = stmt.executeQuery(sqlStr);
                int count = 0;
                while(rset.next()){
                    int cid  = rset.getInt("CID");
    // Display data in html table
    out.println("<table>");
                    out.println("<tr>");
                    out.println("<td>" + cid + "</td>");
    rset.close();
                out.println("<p>====== " + count + " records found =======</p>");
                out.println("</body></html>");
                 catch (SQLException ex) {
                    ex.printStackTrace();
                    finally {
                        out.close();
                        try {
                            if (stmt != null) stmt.close();
                            if (conn != null) conn.close();
                        } catch (SQLException ex) {
                            ex.printStackTrace();
    Help greatly appreciated. Thanks!

    Possibly, the js file is not being detected by the javascript runtime.It would be better if you tried something like :
    ("<script src="<%=request.getContextPath()%>/WEB-INF/classes/ua.js"></script>

  • Forwarded call to cell phone is not displayed with...

    I have a subscription allowing me to let calls to my skype online-number be forwarded to my cell phone. Now, if someone calls my skype number and is forwarded to my cell phone, my cell phone only shows "unknown". This is also the case, if the person calling me and being forwarded has activated his phone to show its number. So it has to be a setting inside the skype-program. How can I change this setting to let the number calling me being displayed on my cell phone?
    Thank you, I appreciate your help very much.
    Solved!
    Go to Solution.

    faju wrote:
    I have a subscription allowing me to let calls to my skype online-number be forwarded to my cell phone. Now, if someone calls my skype number and is forwarded to my cell phone, my cell phone only shows "unknown". This is also the case, if the person calling me and being forwarded has activated his phone to show its number. So it has to be a setting inside the skype-program. How can I change this setting to let the number calling me being displayed on my cell phone?
    It is possible that the telephone network is not passing the Caller ID information along.  This is the case in certain countries, even if the caller has enabled Caller ID and you have set a number in your Skype account to be used as Caller ID.  Have you done that yet?  Log into your account here on the Skype web site using the "Account" link at the top of this page to see your Skype account's Caller ID settings. 
    If you have Caller ID set up on your Skype account, sometimes you will see your own Caller ID number when calls are forwarded from Skype.  Other times, it may be "unknown" or a series of digits.  Unfortunately, Skype does not have control over all of this, since Skype works with partners in many countries to provide services using the telephone network (making calls to or receiving calls from telephones, forwarding calls from Skype to a telephone number, Caller ID, etc.). 
    Patrick
    Location/Ubicacion: Arizona USA
    Time Zone/Hora Local: UTC/GMT -7
    If this message has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.
    Si esto mensaje le ha ayudado, por favor haga clic en "Aceptar como solución". Si encuentra un mensaje útil, por favor "Da Kudos" al final del mensaje, por lo que esta información puede beneficiar a otros.
    I am not a Skype employee. No soy un empleado de Skype.

  • Http cluster servlet not failing over when no answer received from server

              I am using weblogic 510 sp9. I have a weblogic server proxying all requests to
              a weblogic cluster using the httpclusterservlet.
              When I kill the weblogic process servicing my request, I see the next request
              get failed over to the secondary server and all my session information has been
              replicated. In short I see the behavior I expect.
              r.troon
              However, when I either disconnect the primary server from the network or just
              switch this server off, I just get a message back
              to the browser - "unable to connect to servers".
              I don't really understand why the behaviour should be different . I would expect
              both to failover in the same manner. Does the cluster servlet only handle tcp
              reset failures?
              Has anybody else experience this or have any ideas.
              Thanks
              

    I think I might have found the answer......
    The AD objects for the clusters had been moved from the Computers OU into a newly created OU. I'm suspecting that the cluster node computer objects didn't have perms to the cluster object within that OU and that was causing the issue. I know I've seen cluster
    object issues before when moving to a new OU.
    All has started working again for the moment so I now just need to investigate what permissions I need on the new OU so that I can move the cluster object in.

  • My Online Number Does Note Display When I Call Out...

    I have been told by people I call that their phones do not display my online #. They see Unknown Number or Number Available or Another # I do not recognize.
    This is a new problem for me. I have had the same online # for over a year.
    Thoughts?

    This so full of BS on Skypes part, I have to constantly come to my settings on this web site to reinactivate caller ID, it is the only place to do it, there is no setting on the app itself. First, why is the setting not being saved?  Who is turning it off? Why do I have to go this website to activate it and same with the voicemail message greeding? Should be done via app! 

  • Https sites not displaying correctly

    Here's an interesting problem thats cropped up on a couple of machines here. Hopefully someone else has found the cause!
    The problem is that some HTTPS sites are not displaying correctly. We have seen this with vimeo, and with wetransfer. I have included a screenshot of the issue on both safari and on chrome.
    Cross checks i've been able to verify:
    another machine with the same OS (10.8.5) looking at the same sites is fine and another running 10.9.4 is not, so this appears not to be OS or browser version related.
    this does not happen in a different user account on the same machine, so the issue appears to be in the user home.
    this happens across all browsers in this user account. so it appears to be a supporting technology or cache going wrong rather than a specific browser.
    I have emptied the user preferences, and cache folders with no change.
    Clearly i can sidestep this by creating a new user home, but that isn't actually getting to the bottom of what is going wrong, and it would be better to identify the issue!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Weblogic server givning error http: 500

    Greetings !
    i had an issue with weblogic server , i configured weblogic server 10.3.5.0 front with apex 4.1, while working on apex i got an error http: 500 page not found, when i i saw weblogic console i found error
    "EXEC FAILED:No more data to read from socketNo more data to read from socket
    No more data to read from socket
    _init_: # headers=44
    declare nm owa.vc_arr := ?;
    vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:108
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:4000:4651:469023450452601:::RP,4651,960,420,601,4050,27,196,121,232,695,754,83
    2,287,2000:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P4651_ID:110,1,2562922062661389
    EXEC FAILED:No more data to read from socketNo more data to read from socket
    No more data to read from socket
    i restarted weblogic server but the error was remain there, also restarted my network card but nothing would happen, then i had to restart my database but again nothing happens, then i had toi restart my entire server and the error resolves. This was happened to me many times and i had to do the same activity for resolving that issue. i deployed apex.war in it, already changed its xml file location from temp tp my d drive.
    will any one help what it means ?
    and how to overcome from this error

    This is not a PL/SQL error. And from the sounds of it, not even an Oracle database related error.
    Apex is a suite of PL/SQL software. Apex is in other words, tables, views, synonyms and stored procedure code. That is it.
    For a web server to make an Oracle database call, a web server module is needed to
    a) service a URL
    b) convert the URL into a database call
    c) connect to the database and make the call
    d) read the HTP PL/SQL buffer via a 2nd database call
    e) send that HTML response buffer to the web browser client
    I assume that this is what that apex.jar is suppose to do - and fails to do correctly for whatever reason. I prefer not to use Java in this way, and have used for over a decade the mod_plsql Apache web server module interface. It is reliable. It is robust. It is mature. It is easier to use IMO as this is standard Apache and not some silly convoluted XML and Java gunk.
    The error "+No more data to read from socket+" is not really an error message. It simply says that a socket read was done and there was no data to read. This is not an error. Unless the reader expected data to read from the socket.
    Bottom line. Unfortunately you are on the wrong side of OTN raising your problem - as your problem does not show any database side, never mind SQL or PL/SQL side, problems. The error as far the database/Apex side is concerned, is on the client (weblogic/jar) side.

  • Jspx document not displaying in IE 6

    Hello all
    I am using JDeveloper 10.1.3.0.4 (SU4) to create JSF pages. To do that I use the standard Create Page wizards that popup when double clicking page icons in the faces-config diagram. Following the general advice I created jspx documents instead of JSP pages, but these pages do not display in Internet Explorer.
    The error I get is
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    and then a message like
    A string literal was expected, but no opening quote character was found. Error processing resource 'http://lxbakalidis:8988...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
    The pages created start like this :
    <?xml version='1.0' encoding='ISO-8859-7'?>
    <jsp:root xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page"
    version="2.0" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <f:view>
    <afh:html>
    <jsp:output omit-xml-declaration="false" doctype-root-element="html"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
    <jsp:directive.page contentType="text/html;charset=ISO-8859-7"/>
    <afh:head title="About">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-7"/>
    </afh:head>
    <afh:body>
    <h:form>
    Has anybody got any idea what's wrong ? The same pages appear to work just fine in Firefox 1.5 and Opera 9.
    Thanks in advance
    Thanassis

    Hi again David
    Looks like you may have misunderstood me. When I said "a
    _skin.swf", I simply meant a .SWF that has the same name as your
    project, but containing _skin.swf. Basically, the playback control
    swf.
    Sounds like you are using that file and still seeing the same
    result. Oh well... I figured it was a long shot but was indeed
    hopeful!
    Yeah, it's always been a puzzler to me as to why it works
    okay in FireFox but not IE. Go figure. Maybe it's just the way that
    browsers work. I always thought it was because when you linked to
    the raw .SWF, it all had to load up anyway before playback
    commenced.
    Hope you find something that works for you! Rick

  • ALV not displaying zeros

    Hi,
    I am calling 'REUSE_ALV_GRID_DISPLAY' and it is not displaying zeros in two fields. I mean for all the values which are 0.00  it is just showing blanks in  ALV.
    Internal table is populated properly.
    Pls help

    try giving the datatye in fieldcatalog
    wa_fieldcat-datatype = 'CURR'

  • SAP BPC 5.1 SP2 Http 500 internal server error - page can not be displayed

    When our Sysadmin service account are restricted to the app server and the database server ( as they should be in a secured environment) no client
    could reach the web site to even use the Osoft directory . We get a Http 500 internal server error - page can not be displayed . This is for a new multiserver install. Is there a problem on the website security or .net configuration?

    Yes the install was done by the SAP install consultant but now we are getting an error when we restrict the Sysadmin ID. Server diagnostics and other tests on Appshell passed as well.

  • Xhtml call to servlet not returning response, not calling servlet

    I have xhtml in a web app making a call to a servlet but the response from the servlet is not displaying. The original xhtml displays after the submit button is pressed. I tried different alternatives for the servlet response, but I get the same result each time. I added logging to the servlet, but it looks like the servlet is not being called at all.
    xhtml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ejstreegrid="https://unfccc.int/nais/ejstreegrid"
    xmlns:grid="http://java.sun.com/jsf/composite/gridcomp"
    xmlns:nais="http://java.sun.com/jsf/composite/naiscomp">
    <body>
    <ui:composition template="/templateForm.xhtml">
    <ui:define name="title">Some title</ui:define>
    <ui:param name="currentPage" value="somepage.xhtml" />
    <ui:define name="body">
    name to be added<br/><br/>
    <form action="someServlet" method="post">
    <input type="text" name="someName" />
    <input type="submit" />
    </form>
    </ui:define>
    </ui:composition>
    </body>
    </html>servlet in web app being called:
    package netgui.servlet;
    import java.io.IOException;
    import java.util.Enumeration;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class someServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;
    public someServlet() {
    super();
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException   {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {
    processRequest(request, response);
    private void processRequest(HttpServletRequest request,
    HttpServletResponse response) throws IOException {
    try {
    response.getWriter().write("some response");
    } catch (Exception e) {
    logger.error(e.getMessage());
    e.printStackTrace();
    response.getWriter().println("Error: " + e.getMessage());
    I also have a menu.xhtml that is calling the xhtml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
    <script type="text/javascript">
    $(document).ready(function() {
    $("#btn").click(function() {
    $("#upload").click();
    return false;
    </script>  
    <ui:composition>
    <div id="navigation_bar">
    <ul id="topbarleft">
    <c:choose>                 
    <c:when test="${currentPage=='somepage.xhtml'}">
    <li><b>Some Page display</b></li>
    </c:when>
    <c:otherwise>
    <li><h:outputLink value="somepage.jsf">
    <h:outputText value="some page" />
    </h:outputLink></li>
    </c:otherwise>
    </c:choose>
    </ul>
    </div>
    </ui:composition>
    </body>
    </html>Is there some special format for submitting a form to a servlet from xhtml? Any ideas what could be wrong?
    Edited by: Atlas77 on Apr 16, 2012 6:53 AM
    Edited by: Atlas77 on Apr 16, 2012 6:54 AM
    Edited by: Atlas77 on Apr 16, 2012 6:56 AM
    Edited by: Atlas77 on Apr 16, 2012 7:27 AM

    You have a template. That template doesn't have for example a h:form of its own in which the body content is placed right? Nested forms don't work.
    Also for the next time, use \ tags to post code; that makes it actually readable. As you can see, the forum is now trying to interpret some special characters for formatting.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Http 500 internal server error while calling webservice

    I have a scenario Rfc to webservice
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>HTTP 500 Internal Server Error</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    In my response pay load i am getting error msg
      <b>ClientUnable to parse the incoming request. Please make sure that the request is valid: javax.xml.soap.SOAPException: Unsupported Content-Type: application/xml</b>
      </env:Envelope>
    Can any one please tell me what would be the problem i have doubled checked the scnrio,i message monitoring i have a messages
    Audit Log for Message: ec1dc1d0-f1c7-11da-91dd-0004ac577b32
    Time Stamp Status Description
    2006-06-01 16:39:52 Success The message was successfully received by the messaging system. Profile: XI URL: http://saptst01.internal.pcshs.com:51000/MessagingSystem/receive/AFW/XI
    2006-06-01 16:39:52 Success Using connection AFW. Trying to put the message into the request queue.
    2006-06-01 16:39:52 Success Message successfully put into the queue.
    2006-06-01 16:39:52 Success The message was successfully retrieved from the request queue.
    2006-06-01 16:39:52 Success The message status set to DLNG.
    2006-06-01 16:39:52 Success Delivering to channel: ZCH_VERISIGNPPGR
    2006-06-01 16:39:52 Success Transform: using Transform.Class: com.sap.aii.messaging.adapter.XSLTConversion
    2006-06-01 16:39:52 Success Transform: transforming the payload ...
    2006-06-01 16:39:52 Success Transform: successufully transformed
    2006-06-01 16:39:52 Success SOAP: request message entering the adapter
    2006-06-01 16:39:53 Success SOAP: completed the processing
    2006-06-01 16:39:53 Success SOAP: response message received ec89a301-f1c7-11da-a561-0004ac577b32
    2006-06-01 16:39:53 Error SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    2006-06-01 16:39:53 Success The message status set to DLVD.
    2006-06-01 16:39:53 Success The message was successfully delivered to the application using connection AFW.
    Any help would be greatly appreciated.......
    Thanks
    sriram

    Hi,
    Content-Type: application/xml
    ...check for the content type of the message that is sent ot the WS.....with the above mentioned content-type going to the WS currently...WS is not able to parse the req and hence the error....in other words wrong format being being passed.
    Regards,
    ABhishek.

  • *.do  action not displaying in jsp

    Hi, i have a problem, let me explain. I�m developing a project in Struts. I have one globalforward as a html:link defined in a jsp page, after clicking it, it should execute the corresponding action class and display the results in another jsp page.
    Page1Link (global forward to *.do -- not to .jsp) -->calls actionClass.java --> Page2 showing bean with retrieved data from actionClass (session scope)
    The problem is that nothing happens , I mean nothing is displayed in the Page2 (nor data and html tags), and no System.out from ActionClass is displayed. In the navigator bar (MS internet explorer) appears: http://localhost:8080/myproject/actionClass.do and there gets stucked. No errors are displayed in Tomcat.
    Any suggestion or ideas? I�ve been checking the struts-config.xml and do not know what could be wrong.
    Thx in advance.

    Please post the relavant parts of the struts-config, name of action class. Check two things. Is there a ActionForm for this class. If there is is it getting mapped and populated properly. Secondly, If you can try to read the logs.
    Just didnt realized how old this topic was!
    Edited by: tej_222 on Jul 19, 2008 11:33 AM

  • Netbeans Issue: Servlet do not display Chinese UTF-8 properly

    Netbeans Issue: Servlet do not display Chinese UTF-8 properly
    Java Version: JDK1.5.0_01, JRE1.5.0_01 (International version)
    Netbeans Version: Netbeans IDE 4.0
    OS: Windows XP Personal Edition
    Dear Sirs,
    First at all thanks for reading this post. I am having the following issue. I am creating an application using html pages and servlets. I am using Chinese and English languages on them (html encoding UTF-8).
    I created a project in Netbeans and added an idex.html screen reporting to a servlet. Both index.html and in the servlet generated html page contains the line:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    Additional, I setup the character code settings in Netbeans:
    (tools-options-Java sources-Expert-default encoding=UTF-8
    When I run the project, index.html displays itself perfectly, with the Chinese characters displayed properly. The problem comes when the html created servlet is displayed, which instead of the Chinese characters some strange characters are displayed (�� instead of Chinese).
    I have tried different encodings from http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html without any luck. I also setup the encoding of the file itself (using right click-properties in the project menu of Netbeans).
    Also, when I am editing the servlet, the characters are displayed properly. I type them directly without any issue, but then the display is wrong at runtime.
    Also, just in case this have something to do with the problem, my PC was bought in US, therefore the default character set is not Chinese. I had to install the Chinese typing stuff later on. But like I said earlier, the html page is displayed properly, so I really think is some problem with Netbeans.
    After a week trying to find a solution, I decided to post it here in the hopes that someone will show me the way of the light.
    Thanks in advance for any ideas or help provided
    Aral.

    Hi, thanks for your help. However I think the problem his more complex than it seems. Here is my doPost method (the important parts anyway):
    response.setCharacterEncoding("UTF-8"); //Not necessary because the next line should take care of it, but anyways...
    response.setContentType("text/html; charset=UTF-8; pageEncoding=UTF-8");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<meta http-equiv='Content-Language' content='en-us'>");
    out.println("<meta http-equiv='Content-Type' content='text/html; charset=utf-8; pageEncoding=utf-8'>"); //Again not necessary line, but anyways
    out.println("<title>Servlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("this is a test &#20320;&#22909; this is a test");
    out.println("</body>");
    out.println("</html>");
    out.close();
    This servlet is called from a html file. Also, when I load this in the browser, I right click on the screen and I can see that UTF-8 is setup allright. Doing some detective job I found that:
    - If the editor displays the characters perfectly and...
    - Other html pages (no servlets) in the same application can display chinese characters well and...
    - I have configured the encoding as UTF-8 in the servlet properties and in general properties and...
    - The file "web.xml" contains the encoding UTF-8 in its first line then...
    ...my only guess is that something goes wrong during the building of the project itself (ant?). Unfortunately I have no idea about configuring ant to that level, but I began to think that the problem may be there, during the compilation...
    Any ideas?
    Once more, thanks for any help or advice provided.
    Aral.

Maybe you are looking for

  • My earphones that came with the ipod stopped working, can they be returned?

    So I purchased this 7th gen ipod from the apple store, and it was working great for awhile. One day I powered it on to listen to music and I could hardly hear out of them, so I twisted them so see if they were plugged in wrong but they were not. I al

  • Change "New Entry" button description on warning pop-up

    Hello Experts, I am displaying a warning message as information pop-up using following statement. MESSAGE w100 (zmsg_class) DISPLAY LIKE 'I'. The expected functionality is working fine but this warning pop-up has "New Entry" button on it.The requirem

  • LAN Backup on DNS-320L

    Hi, I am using a DLINK NAS (DNS-320L) and I am trying to set up a local back up of a folder on OS X and I keep getting a fail when I test the link out. I have managed to get it working on a PC, so I know I am on the right path. I'm obviously in 'Loca

  • Error C4011 When trying to overwrite an existing propery

    I have a TextMessage with an existing property. I want to change the property value. When I run the following: message.setStringProperty("Source", source); it throws a C4100 error. If I call message.clearProperties() first it works fine (but then I h

  • IPodSBCDriver.kext problem = improperly installed extension

    I just bought an iPod shuffle that works fine with my Powerbook G4, but which won't connect properly to my iMac (800 MHz G4) , which is where my music library is located. When I restart the iMac and put the shuffle into the USB 2.0 port, I get the er