JSP , IE5 and netscape...

          Hi
          The attached jsp (very simple) can work fine in Netscape ,but in IE, it then
          popup a dialog to ask me to download the jsp file.
          The file is a simple HTML file but plus a line ,"<%@page contentType="text/html;charset=Big5"%>",
          on the top of the file, because I need to show Chinexe on my page. After deleting the line, then it
          works fine in IE, too.
          Can someone give me some clue about that ?
          THANKS
          andrewv :O
          

          It can seems not to attqached the file, so I post it directly...
          <%@page contentType="text/html;charset=Big5"%>
          <html>
          <head>
          <title>eProcure</title>
          <meta http-equiv="Content-Type" content="text/html; charset=Big5">
          <style type="text/css">
          <!--
          .text13 {  font-size: 13px; text-decoration: none}
          -->
          </style>
          </head>
          <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" height="91">
          <tr>
          <td rowspan="2" valign="top" width="23%">
          <table width="230" border="0" cellpadding="0" cellspacing="0" height="66">
          <tr>
          <td><img src="images/logo.gif" width="230" height="66"></td>
          </tr>
          </table>
          </td>
          <td width="77%" height="12" align="right" valign="top">
          <table width="284" border="0" height="36" cellpadding="0" cellspacing="0">
          <tr>
          <td><img src="images/top03.gif" width="284" height="36"></td>
          </tr>
          </table>
          </td>
          </tr>
          <tr>
          <td width="77%" height="2" align="right">
          <table width="285" border="0" height="30" cellpadding="0" cellspacing="0">
          <tr>
          <td width="9"><img src="images/top04.gif"></td>
          <td width="30" class="text13" valign="bottom"> µn¤J</td>
          <td width="9"><img src="images/top04.gif"></td>
          <td width="32" class="text13" valign="bottom">¶R¤è</td>
          <td width="9"><img src="images/top04.gif"></td>
          <td width="33" class="text13" valign="bottom">¥ø·~</td>
          <td width="10"><img src="images/top04.gif"></td>
          <td width="44" class="text13" valign="bottom">¨Ï¥ÎªÌ</td>
          <td width="9"><img src="images/top04.gif"></td>
          <td width="105" class="text13" valign="bottom">2000 / 11 / 02</td>
          </tr>
          </table>
          </td>
          </tr>
          <tr>
          <td width="23%" valign="top" height="2">
          <table width="230" border="0" height="25" cellpadding="0" cellspacing="0">
          <tr bgcolor="#000066">
          <td><img src="images/top01.gif" width="230" height="25"></td>
          </tr>
          </table>
          </td>
          <td height="2" width="77%" align="right" bgcolor="#000066"><img src="images/top02.gif" width="222" height="25"></td>
          </tr>
          </table>
          <p> </p>
          <p> </p>
          <p> </p>
          <form name="login" method="post" action="/em/LoginHandler">
          <p>      ±b¸¹ <input type=text name=account size=15>
          <p>      ±K½X <input type=password name=account size=15>
          <p>      <input type=submit value="½T©w">  <input type=reset value="¨ú®ø">
          </form>
          <p> </p>
          <p> </p>
          <p> </p>
          <br>
          <br>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr align="right" bgcolor="#000066">
          <td><img src="images/down01.gif" width="260" height="25"><img src="images/down02.gif" width="192" height="25" border="0"><img src="images/down03.gif" width="150" height="25"></td>
          </tr>
          </table>
          <p> </p>
          </body>
          </html>
          "andrew" <[email protected]> wrote:
          >
          >"Andrew" <[email protected]> wrote:
          >>
          >>Hi
          >> The attached jsp (very simple) can work fine in Netscape ,but in IE, it then
          >>popup a dialog to ask me to download the jsp file.
          >> The file is a simple HTML file but plus a line ,"<%@page contentType="text/html;charset=Big5"%>",
          >>on the top of the file, because I need to show Chinexe on my page. After deleting the line, then it
          >>works fine in IE, too.
          >>
          >> Can someone give me some clue about that ?
          >> THANKS
          >>
          >> andrewv :O
          >>
          >
          

Similar Messages

  • IE5 and Netscape with WLS 5.1

    Hi,
    I sent this out a couple of weeks ago. I have tried the solution but with no success could some one please help...
    We are using Weblogic 5.1 Service Pack 8 on Solaris 2.6, with Apache server acting as a bridge. Apache actually does not serve any content and just forwards ALL requests to WLS. We have a problem at the moment that if you use internet explorer with WLS then it is extremely slow serving up pages. Weblogic listens on port 7001. If we use Netscape to connect then it runs with no slow downs at all, about three second to serve a page but if we use IE it takes nearly a minute. This delay occurs when the request goes through apache. If we directly access WLS on port 7001 then there is no such delay.
    Any ideas on what could cause that delay? Is it an Apache bridge problem or a WLS one?
    Cheers,
    Barnaby
    [att1.html]

    You can have it but not for fail-safe configuration.
    It is not possible to have clusters with different
    WLS versions especially between 5.1 & 8.1
    Kumar
    Alexander von Alkier wrote:
    hi all,
    we are planning to upgrade our application running on WLS 5.1 to WLS 8.1. We
    have configuraed a WLS 5.1 cluster with 4 servers joining this cluster. What
    I'm now thinking of is: is it possible to run a WLS cluster that has 2
    Servers running on WLS 5.1 and another 2 servers running on WLS 8.1?
    Reason of thinking so, is that want to have the most failsafe configration
    as possible during our upgrade.
    I searched the BEA docs, but didn't find anything.
    any help would be fine.
    thanks
    Alexander

  • Facing the problem in loading the applet in mozilla, Firefox and netscape

    Dear sir,
    Well I am facing the problem regarding loading of applet in firefox,mozilla and netscape. Its working fine in IE6 I have the samplecode which asks for jdk1.4 whenever the applet gets loaded in IE6 and also it works fine for every browser but he is asking jre for every time whenever the page gets loaded even if the jre is installed. I need a code such that it should ask only if the jre is not installed. One more thing is it so that for mozilla or netscape the jre installation files are different.
    pls give the solution.
    Well I am also facing the problem like when I load login page of my applicatoin in netscape or firefox
    I provided the buton on login page on which the hyperlink is present, the hyperlink is of servlet path when I click on the same it shows me the blank page instead he should forward the page to the next jsp webpage where I am showing the applet. But it works fine in IE versions and opera but not in the others.
    Awating for your reply.
    Rgs
    sumeet.

    Issue resolved with the help of ABAP.
    Regards
    Bijudas

  • Different result in IE and Netscape

    Hi,
    I am using JDeveloper 3.2 to create my JSP and BC4J. I deployed them into my web server, but I got different result in IE and Netscape. I amd using web bean method to create my JSP.
    When I view my JSP from IE, everything looks as expected. But when I view them from Netscape, some pages did not display correctly.
    1. For the JSTab, the Netscape displays different color(blue) in the help text area, but the IE display gray color.
    2. If I have a table with many columns (e.g.25) to be displayed and my browser is too small to display them all, the Netscape displays JSRowSetBrowser incorrectly. The top right corner, and bottom right corner did not display at the last column side, instead it displaying in the middle of my JSRowSetBrowser. It also suppressed my one button in the same page. IE displays them all properly.
    How do I fix this problem? Please help.
    I am using webapp/cabo/images/cabo_styles.css as my style sheet.
    Lisa
    null

    I'm not an expert on Netscape, but I would guess that you're problems are simply caused by the differences between IE and NS.
    It is very difficult to write (functional) JS code that works perfectly between the two of them and I bet that JSTab isn't written in such a way.
    You may want to try using your own tab object, we do this by creating a page for each tab and making the actual tabs be links to each page. This avoids the use of JavaScript.
    Good Luck!!!

  • JRE1.3.1_02 and Netscape Browser

    We are working with the Applet using Swing Components. Java Run time Environment version is 1.3.1 installed in Red Hat Linux .
    We installed Java plugin JRE1.3.1_02 Windows version.
    The applets are working fine with Internet Explorer 5.0. But with Netscape4.7 it is displaying the error
    error: NoClassDefFoundError : javax/swing/JApplet
    Applets with awt components are working fine.
    What could be the reason?Please help.

    It's working fine with both IE5.0 and Netscape 4.7 browsers once HTMLConverter1.3 was used for converting the HTML file containing the applet.

  • Writing plug-ins for IE and Netscape on Java2

    Please, help me with some information about how to write plug-ins for IE and Netscape on Java2.

    Please always continue on a single thread and don't litter the forum with questions of the same topic
    http://forum.java.sun.com/thread.jsp?thread=511660&forum=54&message=2432223

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • My web site has a link which automatically configures an email. Doesn't work in Firefox 5.0 but OK in IE 8, Opera and Netscape. v

    My web site is generated by Second Site , author John Cardinal, and contains email links which when selected automatically createsan email which all you need to do is fill in the body and send it. This has worked in the past in Firefox and does work now using IE 8, Opera, and Netscape browsers but does not work when using my Firefox browser neither locally on my computer or in my Internet website. Firefox is my browser of choice. This has worked in the past using Firefox.
    My web site is www.schulteis.com/omnibus/. On the presentation page, on the bottom, where it identifies Genealogist: Site Administrator. Select it and it may work for you. John Cardinal tested it on his local machine and it worked for him. His response to me was,
    "It's very likely that this is some sort of browser configuration error, and it's probably related to using a web-based email client, In
    Firefox, look under Options > Applications and see how the "Mailto" Content type is configured. It should probably say "Use Yahoo Mail" [it does]. I have never configured a browser to use a web-base email client, so I can't help more than that.
    Since this works fine on my computer and on my Internet site when using browsers IE 8, Opera, and Netscape but not Firefox, and I didn't do anything special for any browser to cause it to work, don't know what I could have done wrong for Firefox.
    I am using Yahoo mail.
    Thanks for your help
    Donald
    [email protected]

    I'm also running FF 36.0.4 on a Win 7 machine.  Here is what I see when I "open" the map (from the server - not inside DW):
    The map area stays white with no image even after several minutes.  The cursor does change to a hand when over the area where the map should be and if I click and drag there the cursor switches to the closed hand - so it's acting like the map is there and can be moved - but just no map shows up.
    I'll run it though the validator.  Thanks!

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • I have repeatibly loaded Adobe Acrobat Reader but the Plugin Check gives me Adobe Acrobat Adobe PDF Plug-In For Firefox and Netscape 10.0.1 Outdated Version Update. While the plug in check is important it is quite bothersome at present. Please help.

    EVERY TIME the browser boots it kicks off the plug in check. I understand that this is important but it is currently a pain. Once I update Adobe Acrobat Plug in the browser does not recognize that the plug in has been installed and keeps coming up and up an up an up.
    This is the message I get.
    Adobe Acrobat
    Adobe PDF Plug-In For Firefox and Netscape 10.0.1 Outdated Version Update
    Please get back with me regarding a fix.
    Jeff

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • Servlet  output correct in ie and netscape, but not in portal

    I have a servlet that retrieves and xml document, applies a
    stylesheet, and uses PrintWriter to output the html.
    When I run the servlet, the output is correct in ie and netscape.
    So, I set the servlet up as a web portlet and have put it on a
    portal page.
    My problem: When I run the portal page, the mdashes and
    rsquotes, etc. show up in portal as question marks.
    I went into the provider.xml and added some information
    (contentType,charset), but that had no effect.
    Ideas appreciated.
    Thanks.

    I have been doing some research, and this appears to be some
    sort of character encoding/unicode problem.
    I have specified UTF-8 in my servlet. Does portal not work with
    UTF-8?
    Is there a setting somewhere that I can check in portal to
    verify what character encoding it is using? (ISO-8859-1, US-
    ASCII, etc?)
    This is a sample of my servlet code:
    public void DoGet(HttpServletRequest request, HttpServlet
    Response,response)
    throws ServletException, IOException
    DOMParser parser;
    XMLDocument xml,xsldoc;
    URL xslURL,xmlURL;
    String xmld = "";
    String xsld = "";
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    xslURL = createURL(xsld);
    parser.parse(xslURL);
    xsldoc = parser.getDocument();
    xmlURL = createURL(xmld);
    parser.parse(xmlURL);
    xml = parser.getDocument();
    XSLStylesheet xsl = new XSLStylesheet(xsldoc,xslURL);
    XSLProcessor processor = new XSLProcessor();
    processor.processXSL(xsl,xml,out);
    Any advice appreciated.

  • DW CS3 Display problem in Firefox and Netscape

    I have a page created using css. I have a div wrapper set at
    100% for height and width and it has a background image. It
    displays correctly in IE, but in Firefox and Netscape it has a
    white bar along the top. I don't have this online yet, so I know it
    is difficult without seeing it or seeing the css, but any ideas are
    welcome. If there is something, aside from the site being online
    that would help to identify the issue let me know. As always, I
    appreciate any and all ideas.
    Thank you.

    100% height isn't going to work, you know?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Nancy O" <[email protected]> wrote in message
    news:gohub8$1ej$[email protected]..
    > Use these on-line code validation checkers:
    >
    > HTML -
    http://validator.w3.org/
    > CSS -
    http://jigsaw.w3.org/css-validator/
    >
    > I don't know how you are applying max-height or to what,
    if any, benefit
    > so
    > I can't comment. But min/max height/width are not
    recognized in pre-IE7
    > browsers.
    >
    http://www.quirksmode.org/css/width.html
    >
    >
    > --
    > Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >

  • I'm trying to run a .jsp page and all I get is the following error. Thoughts?

    Running Coldfusion 8 / JRun 4 updater 7 / Coldfusion 8 hotfix
    2.
    I'm trying to run a .jsp page and all I get is the following
    error. Thoughts?
    Could not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    jrunx.compiler.JavaCompiler$NoCompilerFoundException: Could
    not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    at
    jrunx.compiler.JavaCompiler.outProcessCompile(JavaCompiler.java:474)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:132)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:100)
    at jrun.jsp.Translator.compilePage(Translator.java:176)
    at jrun.jsp.Translator.translate(Translator.java:254)
    at jrun.jsp.Translator.translate(Translator.java:101)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:707)
    at jrun.jsp.JSPServlet.translate(JSPServlet.java:125)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:113)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    You're right, that ws another fix I tried. There is no fix fo
    rthe issue described, but it still seems like an old issue. My
    class paths are short. Here is my jvm.config (pretty standard):
    # VM configuration
    # Where to find JVM, if {java.home}/jre exists then that JVM
    is used
    # if not then it must be the path to the JRE itself
    java.home=I:/JRun4/jre
    # If no java.home is specified a VM is located by looking in
    these places in this
    # order:
    # 1) bin directory for java.dll (windows) or
    lib/<ARCH>/libjava.so (unix)
    # 2) ../jre
    # 3) registry (windows only)
    # 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
    # Arguments to VM
    java.args=-server -Xmx1000m -Dsun.io.useCanonCaches=false
    -XX:MaxPermSize=256m -XX:+UseParallelGC
    -Dcoldfusion.rootDir={application.home}/
    # commas will be converted to platform specific separator and
    the result will be passed
    # as -Djava.ext.dirs= to the VM
    java.ext.dirs={jre.home}/lib/ext
    # where to find shared libraries
    java.library.path={application.home}/lib,{application.home}/servers/cfusion/cfusion-ear/cf usion-war/WEB-INF/cfusion/lib,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/W EB-INF/cfusion/jintegra/bin,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB -INF/cfusion/jintegra/bin/international
    system.path.first=false
    # set the current working directory - useful for Windows to
    control
    # the default search path used when loading DLLs since it
    comes
    # before system directory, windows directory and PATH
    java.user.dir={application.home}/../lib
    # JVM classpath
    java.class.path={application.home}/servers/lib,{application.home}/lib

  • Can a servlet read a jsp file and display its contents?

    Hi,
    I would like to know if Servlets can read a Jsp file and display its contents.. Right now for our website, I am using a html file to be displayed after a successful post operation through the Servlets...
    -Thanks!

    I posted this in another thread.
    Here's some code that reads using a URL. This doesn't work with JSPs as the server executes JSP when it connects but it's useful for other file types. Note that the filename is a URI</h1>This is <code>show.jsp</code></h1>
    <hr>
    <%! String file = null; %>
    <%! java.io.InputStream is = null; %>
    <%
    file = request.getParameterValues("filename")[0];
    try {
       is = (new java.net.URL(file)).openStream();
    } catch (java.io.IOException ioe) { out.write(file + " not found!<br>"); }
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(is));
    String line = "";
    %>
    <pre>
    <%
    while((line = in.readLine()) != null) {
    %>
    <%=line%>
    <%
    %>
    </pre>

  • Jsp include and jsp param

    Hi All,
    I have the following:
    <jsp:include page="anotherPage.jsp">
            <jsp:param name="testing" value="sdfasdfsd"/>
    </jsp:include> And in anotherPage.jsp I have:
    <%@ taglib uri="/WEB-INF/tld/commons-log.tld" prefix="log" %>
    <log:dump scope="request"/>
    <log:dump scope="session"/>
    <log:dump scope="page"/>
    <log:dump scope="application"/>
    <h3>
    Test: <%= request.getParameter("testing") %>
    </h3>Not only does this output:
    Test: null
    but I don't see 'testing' anywhere in the dumps! What is going wrong?
    Have I badly misunderstood parameter sending? :-/
    Actually, my assumption was that the include code puts the "testing" variable
    into the request.. 1) where does jsp:param put the data items it
    passes through and 2) if the data item didn't previously exist as a
    request parameter, does it ignore it?
    Any assistance would be most appreciated!
    Rob
    :)

    Depends on the server version you are using. If you are using a JSP 2.0 server like Tomcat 5, then you should be able to do that, as long as you set up the container correctly (to use servlet 2.4 and JSP 2.0 specs rather than 2.3 and 1.2...)
    Is you are using a JSP 1.2 container (less then TC5) then you will not be able to use EL anyware except in JSTL tags. The fix is to use the JSTL tags to do the include:
    <c:import url="thepage.jsp">
      <c:param name="param1" value="${attr}"/>
    </c:import>

Maybe you are looking for

  • I just lost all songs on my Ipod, but my Itunes still has everything

    I plugged my Ipod into the computer today, usual as always, just to import over a few new CD's, but then I get this pop-up. "Songs on the iPod "Scott's iPod" cannot be synced because all of the playlists selected for syncing no longer exist" Confused

  • Problem with Function returned without value  -

    all i am having a problem w/ jdev passing the values. when hardcoded it works. when i remove to pass the 2 vals for doc_type and doc_num the params are being passed to the impl but the String sql = " BEGIN :5 := scotts_test_proc.get_log(:1, :2, :3, :

  • Best program to set-up iPads using a mac. (For school)

    What is the best way to set-up iPads in a "school environment"? Should i use iTunes or what?

  • Option to set 'all calls' on by default

    I've been told there's an option in CUCM 9.1.2 to set 'all calls' on by default, as opposed to the user having to activate it themselves.  I'm trying to find where to enable it at, but I'm not seeing it.  Has anyone come across this or am I losing my

  • Exporting/Create a Data Disc?

    How do I export in a way which I can create a high resolution data file? I need to put a data file on a DVD for some festivals. Exporting using Quicktime Conversion gives me the best quality, but it isn't a file in which the festivals can save to the