Session and Open new window

1. I have a problem to access my session variable at second file (null). I was simply the code as below:
http://abc/test1.jsp
<%
session.setAttribute("user", "Test 1");
%>
http://abc/sample/test2.jsp
<%
String username=(String) session.getAttribute("user");
out.print(username);
%>
2. How do I use jsp /jstl open a new window?

gohgss wrote:
1. I have a problem to access my session variable at second file (null). I was simply the code as below:Maybe you're doing something wrong somewhere else. The code looks OK.
2. How do I use jsp /jstl open a new window?You can't. Use HTML or Javascript instead. The form and anchor tags (<form> and <a>) have a "target" attribute. If you set it to "_blank", then the form or link will be opened in a new window. With JS, just put window.open(url) somewhere in an "on*" attribute, e.g. onclick, onchange, etc.

Similar Messages

  • Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar

    Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar.
    i already tired complete uninstall and reinstall, but the options are still missing.
    print scr: http://www.freeimagehosting.net/9znkp
    Thank You in advance for help. Best regards

    Hello,
    ''jstavene wrote:''
    can find nothing under the tools menu for private browsing?
    Then it's not the same issue.
    If Firefox is set to '''Never remember history''', then you're in “permanent private browsing” mode, in which case the menu item ''Stop Private Browsing'' will be grayed out. Perhaps that's the case, and you don't find the menu item easy to see?
    * [[Settings for privacy, browsing history and do-not-track]]
    If that's not the case, then menu items can be hidden using the userChrome.css file. Check if it exists, and if it's there, rename it, then restart Firefox.
    * http://kb.mozillazine.org/UserChrome.css
    In Firefox Nightly (what will become Firefox 20), per-window private browsing has been added, so the menu item under the Tools menu is gone. It's been replaced by New Private Window under the File menu. I don't suppose it's very likely that you're using such a cutting-edge test version of Firefox though.
    If that doesn't solve the problem, since it's a different issue, it would be best if you would ask a new question.
    * https://support.mozilla.org/questions/new

  • Losing original session when opening new window

    I have an application that opens a new child window that form submits
    to another application on another server. When this happens the other application server automatically creates a new session, wiping out the original session in the parent window.
    Is there a way to open a window with a new session such that this new session is seperate from the original and won't kill the session when you click back on the parent window?

    I've dealt with this before. I'm not sure what appserver you're using, but weblogic allows you to speciy the session cookie name used by the web application. So each one of our apps have a different session cookie name (never the default JSESSIONID which would be shared). So in your situation, the app in the new window would be using a different session cookie so it would never overwrite the original window's cookie. I'd imagine most containers allow this type of configuration...just not sure. In weblogic, you defing the cookie name in the weblogic.xml file(deployed with each webapp). Here's what it looks like...
    <weblogic-web-app>
    <session-descriptor>
    <session-param>
    <param-name>CookieName</param-name>
    <param-value>MYAPPSCOOKIENAME</param-value>
    I'd also suggest that you completely leave the default (JSESSIONID) completely out of your cookie name. I've heard some containers use the indexOf function to find the cookie.... so MYAPPJSESSIONID and JSESSIONIDMYAPP might possibly be picked up. I'm not sure of this though, but was chatting with a co-worker who told me.

  • Having issues with gotoURL and open new window

    I am having trouble opening a new browser window with the gotoURL
    script. This is the current FormCalc that I am using.
    $host.gotoURL("http://www.google.com",1)
    I am wondering if this is working as expected? My PDF does not open
    into a new window in any browser or Adobe Reader. Is anybody aware of
    this problem? I have hyperlinks on my form that I am trying to get to
    open in a new window using FormCalc scripts.
    Appreciate any help. I am trying find out if this is bug, or is working
    as expected, or if there is another script to accomplish this?
    Thanks,
    Rebecca

    There are lots of customer applications that are based on Windows RAC. And as mentioned above, it is very well supported by Oracle.
    However, because of the security vulnerabilities of Windows, I've observed that most of the financial institutions and listed companies opt for unix based servers for all high profile applications and run only low to medium risk application on Windows.
    Regarding maintanence issues, I guess it's going to be pretty much the same; there shall always be lots of bugs, lots of patches and updates just like an yother software; doesn't really matter if you are on Unix or Windows systems. As long as you purchase support, it's all good.
    It's pretty much same concern regarding Grid Control on windows.
    Cheers.

  • Programatically close current window and open new window

    hi,
    I am in a click event of a button and want to close the current window and open a new window if a condition is met.
    else if(MyText.Content=="OpenNew")
    newwindow sw = new newwindow();
    sw.Dispatcher.Invoke(new Action(() => sw.Show()));
    this.Dispatcher.Invoke(new Action(() => this.Close()));
    But I always get the System.InvalidOperationException.
    Pls help me with this.
    Thanks,
    Shaleen
    TheHexLord

    If you are trying to create the window on a new thread, you must set the  ApartmentState of the window to STA as described here:
    http://reedcopsey.com/2011/11/28/launching-a-wpf-window-in-a-separate-thread-part-1/
    But you should probably just move the creation of the thread and the call to its Show() method on to the UI thread:
    else if(MyText.Content=="OpenNew")
    this.Dispatcher.Invoke(new Action(() =>
    InfoPanel sw = new InfoPanel();
    sw.Show();
    this.Close();
    Please remember to mark helpful posts as answer.

  • Not able to open firefox, will open if I click on firefox icon, go to finder and open "new window". How can I get it to open up right away again. Thanks. RK

    When I double click on firefox, it will not open. I am able to open it by going to "file and clicking on "new window". It just happened today. Thanks. RK

    Do you mean https://addons.mozilla.org/en-us/firefox/addon/amazon-s3-organizers3fox/?
    Please update to Firefox 23, the version you have is horribly out of date and will have alot of problems. [[Update Firefox to the latest version]]

  • Using Apple TV/Airplay for a full screen movie and opening new window on laptop

    When I have a full screen movie playing on my TV in AirPlay dual screen mode, and I open a new Safari window or my Mail, the window appears seemingly by default on top of the movie rather than coming up on my laptop monitor.  Is there a spot I can reset the default for new Safari windows and Mail windows to my laptop monitor, so they don't interrupt the movie on my TV?
    Background: my girls love Downton Abbey and Call the Midwife which I find terribly boring, and need to find something to do while the movies are playing rather than fall asleep! And you know what happens if Safari shows up over top of their beloved Downton! 

    it being mirror and many tv's being widescreen 16:9 and the screen of ios device not being widescreen this happen
    most tv's support having top and button chopped or streghed to fill the tv this is something one does with the tv's remote

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • Button on page opens new window, session times out in old window

    Hi,
    I've created a custom page and added a button through personalizations in Oracle that opens the new custom page in a new window. When this happens, though, the original window throws the following error when a user attempts to use any functionality in that page:
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    More specifically, the new button has been added to a LOV page in Oracle. Navigation would be: Create timecards page, click on Task LOV button (this opens new window for Task LOV), new button is on this Task LOV page. The new button then opens the custom page, and when the user returns to the Task LOV page to select a task they receive the error.
    How do I prevent this error when the new custom page opens from the button?
    Thanks in advance for your help,
    Suzanne

    I have an update to this issue:
    I found that adding the value &retainAM=Y to the button URL for my custom page resolves the issue of the time-out in the Task LOV page. However, when I make the task selection in the LOV page and return to the main create timecard page, I find that the session has timed out on that page.
    Any suggestions?
    Thanks,
    Suzanne

  • When i close window with multiple tabs angd start new session (open new window) old tabs open again, how can i stop it?

    when i close window with multiple tabs and start new session (open new window) old tabs open again, how can i stop it?

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Long story short: Simply get CC for teams. At 500 bucks a year it's a steal and those 5 licenses in the base package (or was it 10 even?) cover all your computers, at least the 3 ones you mentioned. For system requirements refer to the individual product pages.
    Mylenium

  • How do I forces FF 23 to open maximized, not full screen, but maximized, both on start up and when opening new windows?

    Firefox 23 does not open maximized nor does it open new windows maximized. As such I have to manually maximize each window.
    Run is set to maximized in the shortcut properties, yet it still opens in a normal or less than normal size window.
    Older versions open maximized with no problem. I have Profile manager configured so that I can run multiple versions at the same time and everything opens maximized except FF 23.
    is there some setting in the about:config interface or is this a genuine BUG in the latest version? Any help would be appreciated greatly.
    Also can you tell me how to modify the title bar text/icon/etc as well as where to find the icon or portable network graphic (png) file for the main-window.ico or direct me to appropriate knowledge base articles for modifying both.

    My localstore.rdf file was fine. The problem was caused by two plug-ins that Mozilla shows as being compatible with Firefox 23, when in fact they both cause undesired side effects.
    Maybe the employees of Mozilla should actually test plug-ins before they allow them to be available for download or worse yet, recommend them.
    And if any of the in-house developers had a clue they would stop removing old lines of code from Mozilla products so that new versions of Firefox would still be compatible with older plug-ins and extensions people would still like to use.
    I had to remove recommended extensions and copy code from older versions of FF and NS and modify settings in about:config to allow older extensions to work to correct the problems and get Firefox to work the way I need it to. All in all I have over forty hours invested in modding FF at this point just to have it function the way it used to.
    Unfortunately, since I still can't get buttons designed to open .URL links from the toolbar to work as they did in the past I have a feeling I'll be returning to older code sources to find more answers.
    Lucky for me that I have every browser going back to NCSA Mosaic available to me, so every bit of code from the present till back before Mozilla existed is include in my knowledge base. It's a shame Mozilla doesn't keep such a reference available for it's users or apparently it's in house developers and staff.
    Maybe I'll even re-enable the splash screen for Firefox since the only available plug-in for that doesn't appear to work with Version 23 either, even though once again the compatibility adviser says it does
    It's truly sad that the result of Marc Andreessen's and James Clark's work and Netscape in general became the spawning Mozilla. What used to be a great browser and an acceptable replacement for Netscape, has become a joke. So much for all the hard work and effort made by Dave Hyatt and Blake Ross as well.
    I guess that's what one should expect from the developers that are a part of generations X, Y, and Me. The attitudes associated with those generations show in the lack of thought, consideration, and ingenuity that have been a part the last several versions of FF, not to mention, the copying of features from Chrome.
    When the only original idea to come out of Mozilla of late is to remove or disable features people have used and counted on for decades, the I don't care, I don't know, and me, me, me attitudes of so many from the aforementioned generations is truly evident in the last twenty incarnations of Firefox. Not to mention the attitudes and unhelpful nature of the responses users encounter when asking for help.

  • I am receiving a lot of pop-up ads on website pages. It has only recently started happening. They open new windows with ads for online gambling, online dating and other things. They are annoying and I want them shut off. Please help me

    I have recently started seeing millions of pop-up ads on website pages. It is not something that normally happens. They open new windows with ads for online gambling, online dating among other things. I am growing sick and tired of these ads, and have tried multiple things. I have uninstalled and reinstalled software, I have blocked pop-up ads and unenabled Java script. I have tried everything I could find, but nothing has worked. I have even downloaded AdBlock and Clean Genius. Nothing has even remotely changed this annoying trait. I hope this can be a quick fix I can perform and not something that will have to be done by a tech-hand. Please, if you know anything about this issue, let me know how to fix it.
    Thanks.

    Unfortunately, you have installed malware by clicking on a pop up ad.
    Removal instructions here >>  The Safe Mac » Adware Removal Guide
    Uninstall CleanGenius >  Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?
    Third party maintenance utilities are not necessary on a Mac and can actually do more harm than good and cannot remove malware > Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?

Maybe you are looking for

  • Performance of Oracle Text

    Hi, I'm tasked to help design an application that will have Oracle Text powering the searching logic. The application will have millions of records (in the 30 million to 50 million range), but there's a restriction that 95% of all searches must be ab

  • Location reminders with siri in the UK

    I have been trying to get location reminders to work via Siri.  I have set up my home location via my contact information and via the map as the advice on this states but it is not workiing.  I tried various things to get it to work but nothing worke

  • Oracle GL Budget

    Hi All, I am getting following error when i am trying to open next year in define budget(GL) for a fiscal year calendar.First period is APR-13 and Last period is Mar-14. glbchp_check_periods() 18-AUG-2010 11:05:25 BOYR0005: One or more periods in thi

  • After effects and Photoshop server run in background upon opening Encore CS4

    Hello all . Have Cs4 video suite. Received a trail to evaluate awhile back, am now doing so. One thing I can not seem to find a reason for is that when opining up encore, I notice that AE, Photoshop server and the dynamic link run in the background.

  • Driver not specified error

    when i explicitly give driver name and connection protocol, the servlet works perfectly.but when i give it in the deployment descriptor web.xml ,its says that driver not specified.. here is my web.xml code and my servlet code. web.xml: <?xml version=