GetAppletContext().showDocument() doesn't work with javascript turned off

Is it true to say that
getAppletContext().showDocument(new URL(getDocumentBase(),newUrl)); doesn't work when Javascript is turned off ?
I have a JSP page where the following applet is embedded
import java.net.URL;
import java.applet.*;
import java.net.URLEncoder;
import java.net.MalformedURLException;
public class jreCheck extends Applet {
public void init() {
               try {
               String data = "javaVersion=" + URLEncoder.encode(System.getProperty("java.version"),"UTF-8");
               String newurl = "http://localhost:8080/test/jstest.jsp?"+ data;
               System.out.println("new url is : " + newurl);
               getAppletContext().showDocument(new URL(getDocumentBase(),newurl));
               } catch(Exception ex) {
                         System.out.println(ex.getMessage());
Here is the JSP:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.io.*, java.util.*, java.net.*, javax.servlet.*, java.util.regex.*, java.io.BufferedReader, java.net.URL, java.net.HttpURLConnection" %>
<%
String jumpToPath = "http://localhost:8080/test/jstest.jsp?";
String detect = request.getParameter("detect") == null ? "" : request.getParameter("detect");
String javaVers = request.getParameter("javaVersion") == null ? "" : request.getParameter("javaVersion");
%>
<p>The java Version: <%=javaVers %> </p>
<%     if("".equals(detect ) && "".equals(javaVers) ) { %>
Verify Java version
<% } %>
<%     if("jre".equals(detect)) { %>
<!-- Detecting the JRE Version -->
<p>Running the applet </p>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="250" height="75">
<param name="type" value="application/x-java-applet" />
<param name="code" value="jreCheck.class" />     
<param name="jumpto" value="<%=jumpToPath%>" />
<comment>
<embed type="application/x-java-applet" code="jreCheck.class" width="1" height="2" jumpto="<%=jumpToPath%>" />
<noembed>No Java detected</noembed>
</comment>
</object>
<% } %>
When javascript is on, I see The jre Version: 1.6.0_31
When javascript is turned off, I see The jre Version:
But I still see my url in the Java console as new url is : http://localhost:8080/test/jstest.jsp?javaVersion=1.6.0_31
This says that my browser isn't being refreshed with the following statement in the applet - getAppletContext().showDocument(new URL(getDocumentBase(),newUrl));
Any thoughts please ?
Thanks!

Pass, but "the applet viewer or browser is free to ignore showDocument()". And why all that mucking around with the URL? The URL string you first created is all you need..

Similar Messages

  • I have problem with Flash Player. Full screen doesn't work correctly. Turning off hardware acelleration helps but I want this option to work.

    Problem exist only on YouTube. When i want get full screen, I have black screen with audio. If I click few times full screen button it helps, but I want to go to full screen by one click.
    If i turn off hardware acceleration everything is ok but vids looks terrible.
    I have this problem with Flash Player 10. No 9 works good, but some websites wants no. 10

    Generaly FP works, but problem is that i must press few times full screen button. Now i have turn off hardware accelleration, but movies are quite bad.
    I have already installed newest graphic drivers but it didn't help.
    Everything was good unless Flash Player and Mozilla notificated that update is necessary :<

  • My iphone 3GS it doesn't work good. it turns off e on by itself

    Hi, can someone help me?
    My iphone doesn't work good.
    It turns off and on by itself

    Have you done any basic Troubleshooting
    http://support.apple.com/kb/HT1430
    or advanced
    http://support.apple.com/kb/HT4137

  • 7850 Twin Frozr III UEFI bios doesn't work with CSM mode off

    Hello, everyone! I'm using two 7850 twin frozr III with both having the 050 serial numbers and I've flashed both of my cards with the 050 uefi bios provided somewhere in this forum. The system works fine on legacy boot mode but the problem is that, whenever I turn off the CSM option in the bios to try and boot in fast boot, the system just won't boot. Kinda like no video or something.
    Here's my system specs:
    Asus m5a99x evo r2.0 motherboard (with the latest bios)
    2x 7850 Twin Frozr III in crossfire
    Phenom II 965 Processor
    8gb of ram (dual channel)
    650w 80+ bronze PSU
    2x 500gb WD Hard disk

    clear cmos of your mainboard, else contact mainboard vendor to have ask

  • Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?

    Hi everyone,
    i created some swf loading a flv file in a flv playback and
    check on the auto/hide parameter. When i test the movie it works
    very well. BUT, in my website, i put those swf files in Lightbox
    (javascript computed) and when the mouse goes Over the flash video,
    it shows the Skin player and when the mouse goes Out, the Skin
    player stays over the video!? Why? Does someone has an idea on how
    to force the auto/hide paramater in this case?
    Thanks for your help
    Orlenka

    Found this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
    (AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
    //### force 'autohide' when mouse inactive
    var timer:Timer = new Timer(1500, 0);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    var skinSprite:DisplayObject;
    var prevMouseX:Number;
    var prevMouseY:Number;
    function onTimer(e:TimerEvent):void {
      //get skinSprite if we haven't already
      if(!skinSprite) {
        var child:DisplayObject;
        for(var i:Number = 0; i < player.numChildren; i++) {
          child = player.getChildAt(i);
          if(i == 2) { //this is the skinSprite
            skinSprite = child;
      //check to see if mouse hasn't moved since last timer event
      if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
        skinSprite.y = -1000;
      prevMouseX = mouseX;
      prevMouseY = mouseY;
    stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
    function stage_onMouseMove(e:MouseEvent):void {
      if(skinSprite) {
        skinSprite.y = 0;

  • WebScan doesn´t work with iPhone browser

    The C4780 web interface for scanning is very practical because no driver installation on computer is required for scanning. Just point any web browser to its internal web server, start the scanning process and download the scaned image as a regular element on a web page, all using web standards, right?
    Well, wrong for the iPhone browser.
    For some reason, the C4780 (and probably other HP multifunction firmware) has incomaptible/untested Javascript/HTML that doesn´t work with the iPhone browser.
    On preview action I´m getting a question mark box.
    On scan action - where a new browser window would open on a desktop - I get nothing.
    Please fix that. It could be very useful for me since I can simply scan stuff directly to my iPhone without having to open a computer.
    I also posted this message under Scanning Faxing and copying.
    Thank you,
    Avi

    On the iPhone, go to Settings...Safari...Turn Blocked PopUps off.
    Worked for me with a PhotoSmart C4700.
    It would be even nicer to have a simple iPhone app instead of using Safari.
    (Anyone want to write it?)
    -Wayne

  • Apex 4.2 pre-prod Theme 50 doesn't work with BlackBerry 6.0

    The theme 50 in the pre-pod 4.2 on apex.oracle.com doesn't work with BlackBerry version 6.0. Input fields turn black with black when they get focus
    This is a Jquery Mobile bug.
    See
    http://stackoverflow.com/questions/11870842/how-to-fix-a-blackberry-browser-input-from-going-black-on-focus
    https://github.com/jquery/jquery-mobile/issues/4828
    https://github.com/jquery/jquery-mobile/issues/4836
    Any chance of implementing a work around or patching JQM?

    Putting the second suggestion at Stack Overflow into the in-line CSS seems to have done the trick.
    .ui-btn.ui-focus, .ui-input-text.ui-focus, ui-input-search.ui-focus {
    outline: none;
    -webkit-box-shadow: none;
    There is still an issue that when a link is selected it show the same behaviour but that's more liveable with and I haven't given up hope of finding the class which is causing it.
    The JQM guys look like they have a solution too but I couldn't work out which version it would be applied to.

  • JSDOC framework doesn't work with JSX

    Hil all,
    I'm new in the developpement of indesign javascript … I'm looking for a way to generate javascript documentation.
    I often use JSDOC to generate my doc but it doesn't work with JSX.
    Has someone a good tool who support JSX tag like #include?
    In advance, thanks you for your help

    You could try http://stdbrouw.github.io/Extendables/
    It's a framework for Indesign scripting that includes jsdoc (https://github.com/stdbrouw/Extendables/blob/master/doc/jsdoc.conf)
    John

  • My 2011 iMac doesn't work with display sleep anymore after installing a clean copy of OSX 10.8 Mountain Lion

    My 2011 iMac doesn't work with display sleep anymore after installing a clean copy of OSX 10.8 Mountain Lion.
    I have it on upper left corner but it take the whole computer to sleep, no way to turn just the display.

    Hi, thaks for response, meant to post as a discussion (not question), wanted to save others time if they get the same problem

  • My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!

    My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!              
    I've got an MSI KT3-ULTRA2 mainbord, and I have a NEOLEC VENEZIA TB Cooler. But when I attach my NEOLEC cooler and I start the machine, the machine shuts down within a couple of seconds, and I get nothing to see on my screen. The weird thing is when I turn the PC on, the cooler starts rotating so it can't be broke, but then the pc shuts down i a couple of secs. So pleezze anybody help me!!
    The weird thing is that I also have a coolermaster cooler, and that one works fine. But the problem is that this coolermaster is designed for AMD XP 1900+, and I ahve an AMD XP 2200+ that's why I bought the Neolec Venezia TB cooler.
    Grtzz
    skeleton

    one easy thing to watch for... see if the heatsink or fan is in contact with any part of the motherboard, like... if it is too big and touches something that normally wouldn't be in contact with a fan or heatsink.  If so, it could be shorting it.

  • A day ago, my phone was freaking out, saying all these apps had stopped working, so I turned off and immediately after turning it off the dual core screen with the red M came up and wont turn back on-

    A day ago, my phone was freaking out, saying all these apps had stopped working, so I turned off and immediately after turning it off the dual core screen with the red M came up and wont turn back on…

    http://www.verizonwireless.com/support/knowledge-base-26502/
    Above if battery pull/soft reset doesn't help. If it's boot looped may need new equipment

  • I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    Mike wrote:
    > Could someone tell me why this prototype-based lightbox
    seems to work on one
    > of my sites but not on the other?
    >
    > I literally took the exact same .js & css files,
    copied them over from one
    > site to the other, but it's only partially working on
    the new site.
    >
    > Works :
    >
    http://www.roxanacampagiorni.com/
    >
    > Doesn't work :
    >
    http://www.vilverset.com/sample.html
    >
    > Been troubleshooting this one for days, and I'm stumped.
    Script wants
    > nothing to do with lightboxing HTML files on the new
    site. Only straight
    > JPGs. But it was written to work with them, and it
    *does* work with them
    > just fine on the *other* site.
    >
    > Where is the anomaly between the two sites that's
    causing it to break in
    > sample.html?
    >
    >
    Not sure if this is relevant but on the page that works you
    have these
    js files linked - 4.....
    <script type="text/javascript"
    src="/scripts/jscripts.js"></script>
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    and on the page that doesn't - 3......
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    HTT
    chin chin
    Sinclair

  • Trying to load illustrator 6cs onto new mac and the old activation code for my ill cs doesn't work with it

    Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it.  Do I need a new code or am I missing something?  Same goes for my Photoshop cs.

    you need your serial number.
    if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html

  • My Airport Time Capsule only works when I turn off and turn on, but I think this may end up with the unit. What can this happening and how to solve?

    Time Capsule Airport
    Hello to all, good day, sorry my english google, but it is the tool I have at the moment. I'm having trouble with my Time Capsule Airport, I made all the settings according to the manual, but there has been a connection problem with my iMac. When I finish my work I turn off the imac and then again when they return to work and care, it can not connect to Time Capsule Airport, making it impossible to remove the files and make back up by Time Machine only works when I turn off and turn on the Airport Time Capsule , but I think this may end up with the unit. What can this happening and how to solve? Thank you.
    Olá a todos, bom dia, desculpe meu inglês google, mas é a ferramenta que tenho no momento. Estou tendo dificuldades com a minha Airport Time Capsule, fiz todas as configurações de acordo com o manual, mas tem existido um problema de conexão com meu iMac. Quando termino meus trabalhos desligo o imac e depois quando retorno pra trabalhar novamente e ligo, ele não se conecta a Airport Time Capsule, impossibilitando retirar os arquivos e fazer o back-up pelo Time Machine, só funciona quando desligo e ligo a Airport Time Capsule, mas acho que isso pode acabar com o aparelho. O que pode esta acontecendo e como resolver? Obrigado.

    This is easier to do with pictures perhaps.. since we do not share a common language and machine translation leaves a lot to be desired.
    In the airport utility bring up your Time Capsule.
    Simply post the screenshots here.
    So here is mine.
    Click on the Edit button and give us the Internet and Wireless and Network tab..
    eg.
    Please also make sure you are set to ipv6 in your wireless or ethernet .. whichever is used.. and do tell which.
    This is wifi in your computer.
    The following are important..
    DO not use long names with spaces and non-alphanumeric names.
    Use short names, no spaces and pure alphanumeric.
    eg TC name. TCgen5
    Wireless name TCwifi
    Use WPA2 Personal security with 10-20 character pure alphanumeric password.
    read apple instructions to help with TM and TC.. they did finally admit it has issues in Mavericks.
    OS X Mavericks: Time Machine problems
    Mount the TC manually in finder.
    AFP://TCgen5.local
    When asked for the password .. that is the disk access password and save it in the keychain.
    Reset Time Machine
    See A4 here. http://pondini.org/TM/Troubleshooting.html

  • Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro

    Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro when plugged in with a dvi to mini dvi cable. Any ideas what to do to make it work? I lugged the 23" 2500 miles into the wilderness and I need help

    Okay, here's an update: the DVI to ADC adapter does work with the Apple displays that I have tried, but it won't work with the Formac. I have tried multiple time to contact them, but to no avail... they don't even respond to threats of posting my opinion of them, which is this:
    DON'T BUY ANYTHING FROM FORMAC! They make quality products, but their customer service is a big time joke! They won't take care of you.

Maybe you are looking for

  • Bt openzone & Fon home page

    I have recently purchased a Samsung galaxy S wifi 5.0.  When I try and access the internet I get the Btopenzone URL and the fon home page. I cant seem to get any further access other sites. How would I solve this problem please. I have cleared the hi

  • Messaging bridge with JBoss

    Hi           I am trying to configure a messaging bridge between weblogic 8.1 sp4 and jboss-4.0.2 on my local machine.           I have the bridge working for the following configuration:           Adapter JNDI Name: eis.jms.WLSConnectionFactoryJNDIN

  • SQL Loader: refer datafile name in the control file

    Hi All: Database: 10GR2 I have a table as following: test ( filename varchar2(100), mydata varchar2(1000) I am using sql loader to populate data for this table. I also need store the datafile name to column test.filename as part of dataload. How to r

  • Crystal 2011 linking table with a String and a Number

    Hello, I am able to retrieve the data I want with the following  SQL Query in SQL: If I try to create it in Crystal 2011 APPLRUNN is a string and CNTBTCH is a number. Is there a way I can link these two fields if one is a string and the other is a nu

  • Upgrading apex from 1.6.1.00.03  to 3.1.0.00.32

    hi all i have two servers right now we've upgrade the apex in one of the server to 3.1.0.00.32 from 1.6.1.00.03 and the other is still in the old version 1.6.1.00.03 i want to ask if there is any important changes between the versions and if can be a