IE5.5 SP2 and Java servlets

I have a servlet program that is web based and I need your help. It works fine with Netscape but when it comes to IE, it doesn't work. It pulls data from the database and populates a number of list boxes. IN IE, it populates only the first list box and doesn't go any further. Depending on the value selected in the first box, it populates the second. From second it populates the 3rd, 4th and 5th boxes.
Thanks in advance.
sri

Let me see if I understand this correctly. You have a servlet running which outputs a dynamic HTML page. It shows up fine under Netscape, but not IE.
If this is the case, your HTML code probably isn't correct. I'd double-check what you're outputting. This is surprising as that I have found IE to be very leniant.

Similar Messages

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • Unicode, UTF-8 and java servlet woes

    Hi,
    I'm writing a content management system for a website about russian music.
    One problem I'm having is trying to get a java servlet to talk Unicode to the Content mangament client.
    The client makes a request for a band, the server then sends the XML to the client.
    The XML reading works fine and the client displays the unicode fine from an XML file read locally (so the XMLReader class works fine).
    The servlet unmarshals the request perfectly (its just a filename).
    I then find the correct class, and pass it through the XML writer. that returns the XML as string, that I simply put into the output stream.
    out.write(XMLWrite(selectedBand));I have set correct header property
    response.setContentType("text/xml; charset=UTF-8");And to read it I
             //Make our URL
             URL url = new URL(pageURL);
             HttpURLConnection conn = (HttpURLConnection)url.openConnection();
             conn.setRequestMethod("POST");
             conn.setDoOutput(true); // want to send
             conn.setRequestProperty( "Content-type", "application/x-www-form-urlencoded" );
             conn.setRequestProperty( "Content-length", Integer.toString(request.length()));
             conn.setRequestProperty("Content-Language", "en-US"); 
             //Add our paramaters
             OutputStream ost = conn.getOutputStream();
             PrintWriter pw = new PrintWriter(ost);
             pw.print("myRequest=" + URLEncoder.encode(request, "UTF-8")); // here we "send" our body!
             pw.flush();
             pw.close();
             //Get the input stream
             InputStream ois = conn.getInputStream();
                InputStreamReader read = new InputStreamReader(ois);
             //Read
             int i;
             String s="";
             Log.Debug("XMLServerConnection", "Responce follows:");
             while((i = read.read()) != -1 ){
              System.out.print((char)i);
              s += (char)i;
             return s;now when I print
    read.getEncoding()It claims:
    ISO8859_1Somethings wrong there, so if I force it to accept UTF-8:
    InputStreamReader read = new InputStreamReader(ois,"UTF-8");It now claims its
    UTF8However all of the data has lost its unicode, any unicode character is replaced with a question mark character! This happens even when I don't force the input stream to be UTF-8
    More so if I view the page in my browser, it does the same thing.
    I've had a look around and I can't see a solution to this. Have I set something up wrong?
    I've set, "-encoding utf8" as a compiler flag, but I don't think this would affect it.

    I don't know what your problem is but I do have a couple of comments -
    1) In conn.setRequestProperty( "Content-length", Integer.toString(request.length())); the length of your content is not request.length(). It is the length of th URL encoded data.
    2) Why do you need to send URL encoded data? Why not just send the bytes.
    3) If you send bytes then you can write straight to the OutputStream and you won't need to convert to characters to write to PrintWriter.
    4) Since you are reading from the connection you need to setDoInput() to true.
    5) You need to get the character encoding from the response so that you can specify the encoding in           InputStreamReader read = new InputStreamReader(ois, characterEncoding);
    6) Reading a single char at a time from an InputStream is very inefficient.

  • AS3 and Java Servlets

    Hey guys, I was recently able to get AS3.0 to connect to a
    MySQL database using PHP. However, my employer decided that he
    wants me to use a Java Servlet for the communications rather than
    PHP. I have written the servlets and they are all working properly,
    however, I can't get flash to run them properly in the application.
    When running the servlet I get an error stating "Error opening URL"
    Are there any specific changes that I need to change in my code so
    that I am able to communicate with a servlet? I am posting this in
    the hopes there is an easy solution, or if there is a tutorial
    anyone could provide. If need be, I can post my code.
    Thanks!

    I don't know anything about the server code itself, but is it
    still running on the same domain as the swf? Otherwise you would
    need to look at crossdomain.xml permissions.

  • Cookies, JavaScript and Java-Servlets

    I'd like to know if there is a possibility to connect Java-Servlets and JavaScript. I want to place a cookie on my system when calling the Java Servlet. This is just working fine. My problem is that I don't know how to read this cookie with JavaScript. Is there a detailed homepage, where I can find a solution to my problem?
    Best regards,
    Henriette

    A good place for Javascript is Webmonkey.com.
    Good Luck,
    J.Clancey

  • BOXI 3.1 SP2 and java sdk documentation and api refs

    I have a question regarding the status of the java api references for BOE, REPENG, RAS:
    Yesterday we upgraded the 3.1 system from build 12.1.0882 to 12.2.099.BOE_Titan_SP_REF, which is XI 3.1 SP2.
    When we look at SDK documentation in the Business Objects Community Network (former Diamond)  we see that the api refs are still from July 2008.
    Can you tell if we can get a more current api ref documentation for BO Enterprise, Report Engine and Report Application Server SDK anywhere else?
    Thanks,
    Bernd

    The only references and documenation is [here|http://www.sdn.sap.com/irj/boc/sdklibrary]
    Typically new methods and such are not introduced in a current product version so most likely nothing has changed in the SDK.  It does sometimes happen and when it does new documenation is usually released.
    Jason

  • Help with Error on tomcat and java servlet

    i've just recently installed Dialect Payment client onto my server and is using Java to correspond with the server. I can run the diagnostic test run perfectly fine but when I have compiled the form and the app, I keep getting the error:
    javax.servlet.ServletException: Invoker service() exception
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:478)
         org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         filters.ExampleFilter.doFilter(ExampleFilter.java:149)
    root cause
    com.qsipayments.utility.AssertionError: InvalidConfigException can only be thrown on reload
         com.qsipayments.utility.Assert.shouldNotReachHere(Assert.java:246)
         PaymentClient.util.PCConfigurationService.getConfiguration(PCConfigurationService.java:72)
         com.qsipayments.utility.logging.Logging.initialise(Logging.java:198)
         PaymentClient.PaymentClientBase.initialiseLogging(PaymentClientBase.java:1179)
         PaymentClient.PaymentClientBase.<init>(PaymentClientBase.java:106)
         PaymentClient.PaymentClientImpl.<init>(PaymentClientImpl.java:26)
         Java_3DS_3P_AuthPay_DO.doPost(Java_3DS_3P_AuthPay_DO.java:116)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:420)
         org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         filters.ExampleFilter.doFilter(ExampleFilter.java:149)
    If anyone can help or advise me on this matter, it would be incredibly fantastic! I've tried asking the people who have provided me with the program but they dont seem to have anything useful that i can do to fix the error. I was told by my server admin that it was in the coding, but they claim that it has nothing to do with the coding.
    PLEASE HELP.I've been working on this for months and about to die from frustration!

    I haven't worked with this vendor product, but here are some ideas you might find useful:
    It appears is a configuration problem when using the vendor software (but they already told you that, didn't they!!!).
    I say the above because these lines in your printout are from vendor supplied objects (that you didn't create):
    com.qsipayments.utility.AssertionError: InvalidConfigException can only be thrown on reload
    com.qsipayments.utility.Assert.shouldNotReachHere(Assert.java:246)
    PaymentClient.util.PCConfigurationService.getConfiguration(PCConfigurationService.java:72)
    I suggest creating a brand new project with the simplist use of the above vendor project and get it to work.
    You can use the vendor's (on line) documentation to do this. Deploy it in production to ensure there are no deployment issues. Work closely with one of
    your fellow employees (more than one pair of eyes can pick up stuff that you miss). Next, look at what features of the vendor software the originial project uses and what features the sample project uses. Try to implement a subset of functionality of the orginial project into the sample project and get that to work. Implement the next feature, test, etc. Do small experiments at a time so you can easily isolate what doesnt work.
    If none of the above works for you, try contacting the manufacturer or thier support web site. If none of the above works, look into using a compeditors product.

  • Need Help Badly on Shopping Cart Using JSP And Java Servlet

    Hi All,
    This is the 1st time i am trying to create a shopping cart using JSP and Servlet.
    I have read through a few acticles but i still do not get the whole idea of how it works.
    Please guide me as i need help very badly.
    Thanks.
    This is one of the jsp page which displays the category of products user would like to buy : Products.jsp
    <html>
    <head>
    <title>Purchase Order</title>
    </head>
    <body topmargin="30">
    <table border="0" width="100%" id="table1" cellpadding="2">
         <tr>
              <td bgcolor="#990000" width="96">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Code</font></b></td>
              <td bgcolor="#990000" width="260">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Description </font></b></td>
              <td bgcolor="#990000" width="130">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Brand
              </font></b></td>
              <td bgcolor="#990000" width="146">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">UOM
              </font></b></td>
              <td bgcolor="#990000" width="57">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Unit<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="62">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Carton<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="36">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Qty</font></b></td>
              <td bgcolor="#990000" width="65">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Add<br>
              To Cart</font></b></td>
         </tr>
    <tr>
    <td align="center" width="96" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">123</font>
    </td>
    <td align="center" width="260" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Tom Yam</font>
    </td>
    <td align="center" width="130" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nissin</font>
    </td>
    <td align="center" width="146" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">12 x 10's</font>
    </td>
    <td align="center" width="57" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$3.85</font>
    </td>
    <td align="center" width="62" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$46.2</font>
    </td>
    <td align="center" width="36" bgcolor="#CCCCCC">
    <!--webbot bot="Validation" S-Data-Type="Integer" S-Number-Separators="x" -->
    <p align="center"><input type="Integer" name="Q10005" size="1"></p>
    </td>
    <td align="center" width="65" bgcolor="#CCCCCC">
    <p><input type="checkbox" name="checkbox" value="123"></p>
    </tr>
    <tr>
    </table>
    <table border="0" width="100%" id="table2">
         <tr>
              <td>
              <div align="right">          
                   <input type="hidden" name="hAction" value="AddToCart"/> 
              <input type=submit name="submit" value="Add To Cart"/>                     
    </div>
    </td>
         </tr>
    </table>
    </body>
    </html>
    After user has make his selection by entering the qty and ticking on the check box, he would click the "Add To Cart" button ... and this would call my servlet : AddToAddControlSerlvet.java
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.util.*;
    import java.util.ArrayList;
    public class AddToCartControlServlet extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException
              String action = req.getParameter("hAction");
              if (action.equals("AddToCart"))
                   addToCart(req,res);
         public void addToCart(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              try
                   String url = "";
                   String[] addList = req.getParameterValues("checkbox");
                   HttpSession sess = req.getSession(true);
                   //String sessionID = sess.getId();
                   DBClass dbClass = new DBClass();
                   ArrayList cartList = new ArrayList();
                   for (int i = 0; i < addList.length; i++)
                        String productCode = (String)addList;
                        int qty = Integer.parseInt(req.getParameter("Q"+productCode));
                        Products product = dbClass.getProductDetail(productCode);
                        double totalUnitAmt = qty * product.getUnitPrice();
                        double totalCartonAmt = qty * product.getCartonPrice();
                        Order order = new Order(product.getProductCode(),product.getProductDesc(),product.getBrandName(),product.getUom(),qty,product.getUnitPrice(),product.getCartonPrice(),totalUnitAmt,totalCartonAmt);
                        cartList.add(order);
                   sess.setAttribute("cartList", cartList);
                   url = "/Cart/CartDetails.jsp";
                   ServletContext sc = getServletContext();
                   RequestDispatcher rd = sc.getRequestDispatcher(url);
                   rd.forward(req, res);
              catch (Exception e)
                   System.out.println(e);
    From here, i would get the list of items which user has selected and add to the cartList, then i would direct the user to CartDetails.jsp which displayed the items user has selected.
    From there, user would be able to remove or to continue shopping by selecting other category.
    How i do store all the items user has selected ... everytime he would wan to view his cart ...
    As i would be calling from jsp to servlet .. or jsp to servlet ... and i do not know how i should go about in creating the shopping cart.

    Hi !
    Yon can use a data structure as vector and store the items selected by the user into the vector . Keep the vector in session using session object , so the user can access the entire shopping cart from anywhere in the application .
    Then , you can change the cart accordingly .
    Hope this works.
    Cheers ,
    Pranav

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Serving Java Servlets and JSP

    I have a small hosting company and was wondering what is required to be installed on a Win2k Server to host Java Servlets and JSP pages for a client of mine?

    Ah, so you just want to add a servlet engine to IIS5?
    Tomcat can be used as a plugin for IIS. Check out the Tomcat FAQs - somewhere in there you should find one relating to using Tomcat as an IIS plugin. They're far more comprehensive than I could ever hope to be on the matter!

  • Java servlets and Tomcat  server

    Hi friends
    i am using Sun One forte Community edition . i am trying to make a hello world servlet .
    there are 2 Files one is Index.html , HelloWorld.java (Servlet)
    I call this servlet from the index.html file.
    evertime i call it it gives me and error of Apache tomcat file not found .The tomcat server is inbuilt with the Sun One studio.
    the directory structure is
    -----HOME
    -------WEB_FOLDER
    ----------Index.html
    ----------WEB-INF
    -------------CLASSES
    -----------------myServlet (package)
    ---------------------HelloWorld.java
    -------------LIB
    The problem is I am not getting how to write the path of servlet in index.html to call the helloWorld servlet.

    Make this entry in your server.xml file located in tomcat_dir\conf.
    <Context path="/abc"
         docBase="webapps/abc"
         crossContext="true"
         debug="0"
         reloadable="true"
         trusted="false">
    </Context>
    Suppose i want to develop my servlets in another folder Let it be "XYZ".Then your package statement must be, 'package xyz;'. Place all your servlets in webapps/abc/WEB_INF/classes/xyz dir.
    Place all your Jsp(s) and Htmls in webapps/abc/pqrs dir.
    Now they all come under one context 'abc'.
    Sudha

  • JSP, Servlet, and Java Classes location in Tomcat

    In tomcat, I want to know JSP files, Servlets, and Java classes
    should put in different locations:
    I put web.xml in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF
    I put all JSP files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1
    I put all servlet files in the following:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes
    I put all Java classes in the following with package proj1:
    C:\jakarta-tomcat-4.1.30\webapps\proj1\WEB-INF\classes\proj1
    When I execute JSP files, it has HTTP error 404, file not found.
    The content of web.xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>proj1</display-name>
    <description>
         proj1
    </description>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Please advise. thanks!!!

    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>Where's the servlet definition that maps to "invoker"?

  • Deploying the JSPs, Servlets and Java class files

    Hello All,
    I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
    How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
    plese give us the procedure and stpes how to deply or the links for the same.
    Thanks,
    Santhosh.

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

  • Differences between Java Servlet and Portlets

    Hello,
    May anyone let me know the differences between Java Servlet, JavaBeans and Portlets? It seems quite similar to each other... By the way, what are differences between a servlet container and portlet container? Thank you.
    Charoite

    JavaBeans are totally different from servlets or portlets. JavaBeans can be used in just about any environment. A JavaBean is basically a java class with a no-arg constructor which follows certain naming conventions for its get and set methods.
    Servlets can only function in an "web containers" which are provided by application servers which support servlets. The main function of servlets is to process requests (usually http requests) and generate output (usually web pages). They usually perform validation and other processing and then delegate the web page generation to a jsp.
    Portlets are similar to servlets but rather than generating an entire web page, their output is relegated to a portion of a page. A single web page may contain the output of several portlets. These portlets can communicate with each other. The portlet container provides the functionality to merge the output of the various portlets and the infastructure required to support the portlets.

Maybe you are looking for

  • Can't start up in single user mode

    MacBook was shipped to me carelessly and now I can't get it to boot up. Tried just about everything, but wondering if there's any other way besides Apple + S to get it in Unix mode.

  • Can I use the Bluetooth on my Centro to get on the internet.

    I have a refurbished palm Centro (so I wouldn't have to pay an extra $720 for the AT&T unlimited PDA data plan with the phone). It is replacing my old & dying Palm TX. One thing I loved about the TX was the wifi access. It was great to connect to my

  • Ios8 issues

    What's going on with iOS 8 ? my normally solid ipad 2 has been instantly ruined since I installed this update and all I am reading is hundreds of users having the same specific ios 8 related issue when will Apple actually test these things prior to r

  • Customizing meta data import in Flash web galley

    I'm using CS4 Bridge to create a slide show with the Journal with  Slideshow template, which captures metadata for the caption. I don't  want the image information. I want the Description field. I can manually  edit the XML file to remove it, but I w

  • BB language software?

    My 8330 came with Chinese-simp, Chinese-trad, and Korean character/font support pre-installed. Does BB have similar software for other languages?