Opening new window from applet does not pass session

I have an applet which has a function where it opens some jsp pages in a new window. The jsp page checks for a session variable to very the user is logged in and some other variables that are required on the page. My problem is in IE 6/7 the new window does not have the session variables from the parent window.
I'm using
context.showDocument(new URL(host + "?" + params.toString()), "_blank");
to open the new windows.
How can I open a jsp age in a new window while carrying over the session variables from the parent/applet window?
Thanks for any assistance!

We experienced the same thing with Java 6 Update 18 on IE 7. As for IE 8, if the user is a local administrator, then the session is kept in the new browser windows opened via showDocument. Check out the following URL for related discussions:
http://stackoverflow.com/questions/1324181/ie8-losing-session-cookies-in-popup-windows
Our clients are forced to roll back to Java 6 Update 17. Firefox works fine.

Similar Messages

  • Open new window: 1st try does nothing; close repeat process and window opens (everytime); why?

    When I try to open a link by right clicking, open new window, my first attempt always does not follow the link and the new window is blank (everytime). I close the blank window, repeat the open link in new window and it actually works and opens the link in the new window. This never used to happen, and for about the last two weeks or so, this has been a source of irritation.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Opening new window from separate class

    Hello. I am currently writing a program that should be able to open a new window.
    Upon clicking a button in the first window, a second window should open up.
    The second window has to contain it's own buttons and methods, and upon
    clicking the button in the first window, it should close.
    So far I am only interested in making the button, and making the second class
    that will open when I click it. So far I've tried doing this in many different ways,
    but no matter what I do something either goes wrong, or it behaves weirdly.
    Class1: Contains the button that opens the second window
    /* Imports */
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class SecondWindowExample extends JFrame implements ActionListener {
        /* Initialization */
        private JButton xPress;
        /* My main method */
        public static void main (String[] Args) {
            SecondWindowExample frame = new SecondWindowExample();
            frame.setSize(200,120);
            frame.createGUI();
            frame.setVisible(true);
        /* The interface */
        private void createGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            /* Button to open new window */
            xPress = new JButton("Press me");
            window.add(xPress);
            xPress.addActionListener(this);
        /* The actionPerformed for my actionlisteners
         * This only works when you press the button with your mouse */
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            if (source == xPress) {
                /* Code to open and close second window */
    }Class2: Contains the second window to be opened by the first class
    It has to be able to contain it's own buttons and components
    import java.awt.*;
    import javax.swing.*;
    public class calcFunctions extends JFrame {
    public calcFunctions(){
            createNewGUI();
            setVisible(false);
            setTitle("Functions");
            setSize(300, 300);
            setLocation(200, 200);
            setResizable(false);
          private void createNewGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
    }Thanks in advance, any help is greatly appreciated.
    Sincerely, Ulverbeast

    I would make the second "window" a JPanel (or better a class that is able to create a JPanel), and display it in a modal JDialog. For e.g.,
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class SecondWindowExampleB extends JFrame implements ActionListener {
      /* Initialization */
      private JButton xPress;
      private JTextField sumField = new JTextField(10);
      /* My main method */
      public static void main(String[] Args) {
        SecondWindowExampleB frame = new SecondWindowExampleB();
        frame.setSize(200, 120);
        frame.createGUI();
        frame.setVisible(true);
      /* The interface */
      private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());
        /* Button to open new window */
        xPress = new JButton("Press me");
        window.add(xPress);
        xPress.addActionListener(this);
        sumField.setEditable(false);
        window.add(sumField);
      public void actionPerformed(ActionEvent e) {
        Object source = e.getSource();
        CalcSumPanel calcSumPanel = new CalcSumPanel();
        JDialog dialog = new JDialog(this, "Calculate Sum", true);
        dialog.getContentPane().add(calcSumPanel);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        if (source == xPress) {
          sumField.setText("");
          dialog.setVisible(true);
          double sum = calcSumPanel.getSum();
          if (Double.compare(sum, Double.NaN) != 0) {
            sumField.setText(String.format("%.4f", sum));
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    class CalcSumPanel extends JPanel {
      private JTextField field1 = new JTextField(10);
      private JTextField field2 = new JTextField(10);
      private double sum = Double.NaN;
      public CalcSumPanel() {
        JButton calcSumBtn = new JButton("Calculate Sum");
        calcSumBtn.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
            calcSumActionPerformed();
        add(field1);
        add(field2);
        add(calcSumBtn);
      private void calcSumActionPerformed() {
        try {
          double d1 = Double.parseDouble(field1.getText());
          double d2 = Double.parseDouble(field2.getText());
          sum = d1 + d2;
        } catch (NumberFormatException e) {
          sum = Double.NaN;
          JOptionPane.showMessageDialog(this, "Non-numeric data entered", "Input Error",
              JOptionPane.ERROR_MESSAGE);
          field1.setText("");
          field2.setText("");
        Window win = SwingUtilities.getWindowAncestor(this);
        win.dispose();
      public double getSum() {
        return sum;
    }

  • When I open a new window, the spinner does not stop, or the window open

    I have a MBP 3 yrs. old, running Snow Lep. When I open a new window, the spinner in the address bar spins and window does not open unless I click on the X and stop the spinner. Some times this doesn't work either. It just hangs up trying to open the next window.

    The given are very little details about your problem so please elaborate. 
    2. on each page load you have to verify whether the session variable. if "IsLoggedIn" exists and its value is "true" then you can show the requested page otherwise redirect to login page.
    if(Session["IsLoggedIn"] == null || Session["IsLoggedIn"] != "true")
    Response.Redirect("login.aspx");
    Better way: use a master page. In the load_page event, check the session. Thus, you wouldn't need to write the method to check in every page, just in the master page.
    Noam B.
    Do not Forget to Vote as Answer/Helpful, please. It encourages us to help you...
    Masterpage is a better idea.
    But The login page shouldn't use MasterPage OR need to have logic to check before redirecting to login page if you are already in Login page.
    Otherwise you will get into Recursive Redirection error.
    hope this helps.

  • Open a new Window from Applet --- beginner

    Hi all,
    I need to open a browser window from an applet and control the window properties (width, height .. etc). Can anyone please give a code example for this
    thank you.

    hi
    First, thank you for your reply.
    Second, I need to know how could I found this Netscape calss to can be abelto import it.
    And I want to know if it will work on (IE) browsers or it is just working on Netscape Browser.
    Thank you again :)

  • HELP! Controlling size and position of new window from applet

    I am totally new to using java. I am making use of a java applet for showing images. Each image may be clicked to open a higher res image in a new window. I want to be able to control the size and position of the new window. The windows need to be different sizes for each image - a couple may be the same size but some will be different.
    I found this:
    <<<<Yes it can (but not after the window has been created). JavaScript can open documents in a new (or an old) window with eg.
    <script>
    window.open("document.url", "window_name", "toolbar=no,statusbar=no,scrollbars=no,resizable=no,width=600,height=400");
    </script>
    The new window will have only the title bar and the frame around the document, nothing else.
    That can be made a function and called from an applet through liveconnect.>>>>
    from a search re window sizes but I need more explicit help with how to put it into my document! This looks like it might work with the exception it doesn't give a position but I could even live without that.
    Am I correct in assuming tha this script goes in the <head> of the document? If I have several different sizes, I would need to have several different but similar scripts but with different window names?
    Do I substitute the actual url where it says "document.url"? What about "window_name"? And what does liveconnect mean?
    Here is a sample from the applet coding I have in place:
    \\\\\<param name="image2" value="barneygargles_th.jpg">
    <param name="link2" value="http://www.barneygargles.com">
    <param name="statusmsg2" value="Barney Gargles Family Restaurant">\\\\\
    Please, I hope someone can help with this! This is driving me crazy!
    Thanks to anyone who can walk me through this one!
    Linda

    I have been searching the internet for more information and it appears that others have been faced with this problem.
    I have found a couple of possible answers but I am not sure how to do them.
    http://forums.macosxhints.com/showthread.php?t=64059
    http://forums.macrumors.com/archive/index.php/t-119915.html
    The first link seems more relavent but I am not sure how to do what it is talking about.
    Can anyone help?
    I have recently moved from a PC to MAC and this problem is really getting in the way of my work.

  • Opens new window from link rather than new tab

    I had Firefox set to open links in the same window. It has started opening them in a new window.

    see [[Reset Firefox – easily fix most problems|Reset Firefox – easily fix most problems]]
    [[Firefox does not work - Common fixes to get you back up and running|Firefox does not work - Common fixes to get you back up and running]]

  • Opening browser windows from applet

    I have 2 questions
    1) Does anyone know, what do I have to do to force my java applet to open new browser window with specified url ?
    2) Is any java class, which renders HTML files ? I'm trying to open some document in frame inside applet and I don't know if i have to write this renderer by myself.

    for your second question, I dont know if there is a specific HTML class but SAXParser makes reading xml very easy and you probably should have much trouble writing a class to read html.

  • Open new window from label link

    Hello,
    I have a table with url-s adresses.
    I want to build a report region with a link to open a new window for each line from table.
    I made that following code:
    select ''||DESCRIPTION||''
    from     url_table
    It's not working.
    I am a beginner.
    Thanks you.

    Hi,
    Use this SQL:
    select '--< '||DESCRIPTION||'' as "DESCRIPTION" from     url_table
    Remove --< from SQL Query
    and in report attribute for DESCRIPTION column:
    Display As: Standard Report Column
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Firefox 29.0 opens new windows from clicking links that are in a smaller window, should open as maximized window. How to change?

    How do I click a link on a web page, and not have to maximize the window every time? Firefox 29 seemed to add this additional click annoyance and I can't see how to change that. I do not want full screen mode which is what Firefox calls it when it removes an additional row of menu items. I mean maximizing the window so I don't have to do it each time! Please tell me how to change the settings and restore this normal feature.

    Go to
    About:Config
    Change
    browser.link.open_newwindow
    value from 2 to 1
    Works for me now. Every new window is max size

  • How can I open new window from a link in another window?

    Hello everyone!
    Can anyone help me with my problem. I need to open a child window from a link in the mother/master window. Actually, the link that would open the child window is directed to a servlet that retrieves data from the database. The data will then be displayed in the child window. I don't how to open a new window with the data retrieve (thru the servlet) displayed in it. I'm using model 2 architecture (Servlet-JSP).
    Thank you in advance and more power!
    nicoleangelisdaddy
    [email protected]

    Or you can use something like this,
    Click and in your test()
    <script language="javascript">function test()
          document.form_name.target="_blank";
          document.form_name.action="/test/servlet/LoginServlet";
          document.form_name.method="post"
          document.form_name.submit();
    }</script>
    Here "/test" is your application context path.
    If you want to open the link in the named window then use,
    document.form_name.target="your_own_name";

  • Opening new window from a pdf using Formcalc and gotourl

    Hello,
    I am trying to open a new browser window using Formcalc and gotourl.  We are using Livecycle Designer ES2 9.0
    Previous versions of Designer had an extra parameter at the end such as :      
         xfa.host.gotoURL(<url>, 1)  or  xfa.host.gotoURL(<url>, 0)
    But in 9.0 the second parameter is removed , so I'm left only with
         xfa.host.gotoURL(<url>)  and this replaces my form rather than opening a new window.
    Our company restricts the use of Javascript with Adobe so I am left with Formcalc to accomplish what I need.
    Does anyone know why the second parameter was removed in 9.0  and/or if there is a way to accomplish what
    I need in 9.0 without using Javascript?
    Thanks,
    Norm.

    Hi,
    if you cannot use JavaScript because it is deactivated, then FormCalc won't work also.
    I don't know why the 2nd optional parameter has been removed. Here is an explaination of it.
    http://help.adobe.com/en_US/livecycle/8.2/lcdesigner_scripting_reference.pdf#page=382

  • New sequence from clip does not apply the Pro Res Compressor...

    I wanted to test Premiere to see if it could handle Pro Res videos (which after some initial research, I read that it can). So to see for myself, I imported a Pro Res 422 video, right clicked the clip and selected "New Sequence From Clip"... But it does not seem to apply the Pro Res 422 compressor...
    The video is originally HDV and I converted in Compressor to 422...
    I know it may be pointless to convert HDV to Pro Res (not to mention that the HD clips weights 45 MB and the converted 205 MB, although in FCP the pro res is less taxing on the system as opposed to HDV, not sure if the same applies with Premiere)... But I will be receiving from pro res files soon, and I want to make sure they work properly in Premiere.
    Thanks

    Being a recent FCP devotee I will see if I can interpret what this person expected.
    By dropping a Prores 422 clip on the Make Sequence button, I will hazard a guess that he expected to see a Prores 422 sequence created. In the FCP workflow that  is the desire sequnce to play that clip in. What he is seeing in the second image (the sequence settings) is an AVCHD 1080 anamorphic sequence. And hes not sure why its not Prores.
    Im sure once he reads the links Todd provided he will understand he is not in Appleland anymore and that there is a different workflow with PrP.
    How did I do?   ;-)

  • Latest update of SwagBucks has hijacked my Open New Tab and uninstalling does not fix... so what now?

    The latest auto update of SwagBucks now locks the Open New Tab page into swagbucks.com.
    I've lost my TILES page.
    My HOME page is still correctly set and regardless of what that is, the Open New Tab page always goes to SwagBucks.com.
    I've removed everything I can find that is SwagBucks, including add-ons/extensions.
    Since that update, there is NO LONGER the usual/stated "cogwheel" for the TILES to turn them back on/set their level of function (classic, enhanced, etc.).
    I use Windows 7 and the latest Firefox Browser, 35.0.1.

    Install this - https://addons.mozilla.org/en-US/firefox/addon/searchreset/
    It will reset the new tab page, among other things, and then disappear once it has done its work.

  • New window in Safari does not open under my default homepage - just upgraded to Lion

    I just upgraded to Lion and whenever I open Safari, it opens on the last page I used versus that my default homepage.
    Is this a bug? It worked fine prior to upgrading and I didn't change any of my settings.
    Thanks

    Just talked with support... two options...
    Opton 1 (turns off the new "Resume" feature which is new to Lion...) Under System Prefs, click OFF the check box for Restore windows when quitting and re-openingn apps....
    Option 2... when you quit Safari, include the option key... so option-command-Q to quit... this quits and discards the windows you have open...
    Made my protest to this silly change known... it should be a check box in Safari to load last page, not effect another programs functionability... You're slipping Apple... that's a Microsoft move!

Maybe you are looking for

  • Master-Detail Form, Conditional Display of a Column Link

    Hey Guys, I've got a little question for you: I use a Master Report with a Column Link that i would like to hide when my Column in the Report named "NUMBER" is 0. I can't get it to work though. Using the "Conditional Display" stuff doesn't seem to wo

  • PreparedStatement and bind variable

    We are experiencing some werid performance break downs where database server looks healthy and our java applications are down to their knees. I was wondering if someone could help me clarify the comparison between PreparedStatement and bind variable.

  • Drill-down reports Discoverer-style

    Hi, I'm looking for a way to implement drill-down reports in HTMLDB. All the references I found are showing details in a 2nd page for a certain row in the 1st page (e.g. ordered items for an order ID). I'm not looking for this, but for drill-down "a

  • Disk drive disappears

    I've got a Powermac G4 DP 800 that the disk drive works fine, but when I attach a hard drive to the ATA ribbon, neither drive shows up,not in Disk Utility, not even in System Profiler. Unhook the hard drive, again disk drive works fine. Tried a diffe

  • Page not found error for search results

    I have a site search recipe that worked perfectly on a previous site. I've created a new search for a different site following the same recipe. I must be missing something though, because I am getting a page not found error. Here is the code that wor