How to redirect a page to a new window instead of the current one

Can someone please tell me how to redirect a page to new window.
I mean I am running a JSP with a button and on clicking it i am opening a new window (thru javascript offcourse),
Now response.sendirect("New.jsp") should be opened in that new window opened.
I tried it but the New.jsp page is opened in the current page (Even though new window is opened ! ).
Please help.

Hi,
U can use the following code to Pop up in new window
Jsp1.jsp
<%
if(action != "")
response .sendRedirect("Jsp2.jsp");
else
%>
<html><head><title>JSP 1</title>
<script language="JavaScript">
function View()
window.open("Jsp1.jsp?action=view","View","");
</script>
</head><body>
<form name="frm" method="post">
<input type="button" value="View" onclick="View()">
</form>
</body>
</html>
<%

Similar Messages

  • Open sites in new window instead of the current window without having to rightclick

    I want the links that I click on to '''automatically open in a new tab '''instead of overriding the existing window.
    I want them to do this automatically, without having to click the right button.
    This is how it worked before, and it's a much easier way to surf.
    Suddenly, last time Firefox was updated, it changed, and now I cannot get the settings back to what it was, even when following detailed instructions.

    Since the introduction of tabbed browsing in Firefox, the default has always been to over-write the currently selected tab with the new page when left-clicking a link or bookmark. You can open a link or bookmark in a new tab by using the following procedures or by installing and setting some preferences within some add-ons. You may have previously used an add-on that is no longer compatible with Firefox (look in Add-ons > Extensions for disabled items).
    To open a bookmark or link in a new tab, on the link or bookmark:
    *right-click and choose "Open in new tab"
    *middle-click (press the mouse wheel button)
    *CTRL+left-click
    *See --> http://www.7is7.com/software/firefox/shortcuts.html (under "Web Navigation" section)
    Some add-ons:
    *Tab Utilities --> https://addons.mozilla.org/en-US/firefox/addon/tab-utilities/ (light-weight extension)
    *Tab Mix Plus --> https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/ (heavy-weight extension)
    *Search for other tab related add-ons --> https://addons.mozilla.org/en-US/firefox/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Wenn I've made changes on my private home-page and want to see the result, how do I get my Mac to load the new side instead of the "old" one?

    When I've worked on my private home-page and want to controll the results, how do I get my Mac to take the new version instead of the old one? I tried cmd R without any change! Who knows? Nina

    Try clearing the cache - command-option-e in Safari.

  • How to Open BSP page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi Mahima,
    Use the onClientClick event of the button.
    on_Client_Click="callwindow();"
    <s cript>
    function callwindow()
    win_dow.o_pen("www.sap.com");
    </s cript>
    Please remove the underscores from code.
    Regards,
    Anubhav

  • I in have a product registered an old account, how do i move it to a new account and close the old one?

    I in have a product registered an old account, how do i move it to a new account and close the old one?

    COntact support by web chat.
    Mylenium

  • How do I get Google search bar results to open in a new tab instead of the current tab?

    When I use the Google search box, I would like the search results to open in a new tab instead of the current tab.

    It turns out there is an about:config setting just for this purpose. Toggle browser.search.openintab to 'true', and all is well.
    Rick

  • New Window from "FILE- NEW-WINDOW" duplicates all the currently open tabs in the new window. I want new window with just the "Home" tab please?

    Running Firefox 3.6.13 on 64Bit Win7.
    I like to group tabs on a topic in a window, and when the tabs get to be too many, or a new topic, I do FILE->NEW-WINDOW and expect a new window with just one default (Home) tab. Instead I get a new window with ALL the tabs of the first window.
    I have checked all the Options I could find. Nothing helped. I CAN make a new Window with just one tab if I right-click a link and say "Open in NEW Window".

    A new window should only open with the home page(s).<br />
    If you see differently then you need to check your extensions.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Safari new windows open under the current page

    I like to command click for a new window and recently Safari started opening new pages that I command click UNDER the front main window. The preferences say it should be on top but it does not open that way. Any ideas how to get this opening correctly again?
    Thanx In Advance!!!

    I don't want a new browser window I want a new window when I open a link as per the preferences it says it will then become the active window

  • When I click on an email link it opens in the email window instead of opening a new window, how to get it to open a new window instead

    It's Comcast email, most links are to articles from the Wall Street Journal. Lately an email from Charles Schwab broker with a link to a pdf file has been doing the same. When I click on the link, it opens within the email frame, which is about 1/3 filled up with the toolbar, mailboxes, headings etc. If it opens with 2 bars on the right side to move down, I can see the whole article, but often it opens with only one bar on the right side which will not let me get all the way to the end of the page.
    It's been happening for several weeks. I got a new computer and it's still happening. Comcast sounds like they've never heard of it. Most recently happened today. I tried the same email link with IE and it opened a new window.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

  • Open URL Ivew in a new window without loosing the current session in Portal

    Hi All ,
    I have a requirement in which there are two tabs in portal which are two roles A and B
    Where each tabs(role) has an URL Iview attached to it.
    Current I am in Window 1 - Tab A
    When I click on Tab B, it has to open in a new window (Window2) with Tab B content , where as the previous session (Window1)is not lost and Window1 has to show Tab A only.
    Kindly help me out on how to implement it .
    Thanks in Advance

    Hi All ,
    Thanks for the reply and sorry for the late response. 
    As per Prashant  I made the setting .. When I click Tab 2 in Window 1,  opens  a new window 2 with Tab 2 iview .but the window 1 is hilighted with Tab B and the current session on Tab A is lost . As per the reqiirement I should not loose the focus on Tab A in Window1.
    also Kindly let me know how and where can I sent the EPCM paramenter for the URL Iview .
    Thanks in Advance
    Edited by: Prasanna Kumar on Feb 21, 2012 12:42 PM

  • Every time I click a link, it opens in a new tab instead of the existing one.

    Whenever I left click on any link, Firefox opens the link in a new tab. Previously it would only open a link in a new tab if I either middle clicked, or right clicked and specifically selected 'Open Link in New Tab.'

    This may be because the site is instructing the browser to open them in a new tab (I know, it's a big usability issue, but the web is still young...). Can you try it on other browsers and see what happens? If the same happens, yes, it's probably the site that's telling the browser to open the link in another tab.
    If you want to eliminate that behavior, and be in full control of where the links open (middle click to open in new tab, left click to open in the same tab - as it ''should'' be), I suggest you install an extension like [https://addons.mozilla.org/en-us/firefox/addon/1122/ Tab Mix Plus], which, among other things (many things, it's an absolutely phenomenal extension) will let you configure "links that open in a new window" to open on the current tab.

  • Defining and using new listener insted of the current one

    Dear
    my database suddenly become not working and when i open oracle EM i found it down because of the listener is down and i foun the port number is 1521 while my creation of the data base the port that i used was 1525,so, How can I manually create a listener and then switch the current default listener to this newly created listener?
    Thanks

    Check the listener configuration in $ORACLE_HOME/network/admin/listener.ora to see if listener port is set to 1525. Start the listener manually using
    lsnrctl start <listener name>If you really want to create another listener, run:
    netca

  • Start new session automatically after the current one is expired

    Hi Guys,
    My application should be displayed on the screen 24/7 . The information there is being refreshed every 5 minutes. When the APEX session is expired the refresh stops working and the page has to be reloaded.
    I'm looking for the solution that would allow to keep the application always on and to start new session automatically without a human being involved.
    Thanks in advance,
    Elena

    Hi everybody,
    Being impatient, I've already found a solution. I created a JavaScript function the reloads the page. Instead of current session ID in the url I use 1. In this case apex generates the new session.
    The Timer Plug-in runs the function every X minutes.
    The function code is the following:
    function reload() {
         var url = location.href;     
         var g_app_id = '&APP_ID.';
         var g_page_id = '&APP_PAGE_ID.';
         var patt = new RegExp("[^=]+","i");  // i - Perform case-insensitive matching
         var newUrl = url.match(patt) + "=" + g_app_id + ":" + g_page_id + ":1";     
         window.location.assign(newUrl);
    I hope it might be helpful for you guys.
    Regards,
    Elena

  • Safari keeps opening links in new window instead of current

    Hi
    I have an iMac, everytime I click on a web link in Safari it opens it in a new window instead of the current window. So after a few minutes internet browsing I have loads & loads of windows open!!!
    I have the Safari preferences set to open in 'Same Page', but no joy.
    Can you help?
    Thanks

    Hi
    Welcome to Apple Discussions
    The Safari Preference Tab panel pertains in part to opening links from outside of Safari, e.g. Mail, or for using a command key to create a new tab. Within Safari, if a link is coded to open another window, it will do just that unless a command key is used, regardless of what's selected in the Tab panel.
    With that said, for complete control over tabs, install 3rd party add-on Glims. Once installed, you'll find Glims' preferences as a separate panel within Safari Preferences (you may have to click on the directional arrows at the end of the Preference Panels to access it). In the Tabs misc panel, select "open link in a new tab". That will accomplish what you want, i.e. opening a new tab when a link within Safari is coded to open a new window.
    You'll also find a number of very useful features in the other Glims sub-preference panel enhancing Safari usefulness.
    Message was edited by: Hawaiian_Starman

  • Since Firefox just upgraded, every LINK opens in a new window instead of a new or current tab. PLEASE HELP

    Since install of version 3.6.8, every link I click on opens a new window instead of the current or new tab. No changes in my settings were made. I had no problems until the 3.6.8 was installed.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Maybe you are looking for

  • Connecting my hbogot rhough apple tv

    I am trying to authorize hbogo on my apple tv, when I log into hbogo.com on my computer it then has me login to my fios account. I then go to devices and try to add the apple tv, it has a small window pop up thats authorizing through verizon, then it

  • Reading sub folders in ifs using the ifs api

    hi, Is there any way i could get all the sub folders under the parent folders ,using the ifs api. i am able to get the all the folders starting from the root ( parent folders) but i am unable to get the folders under each parent folder. for example a

  • Access Material Master from ECC 6 via PI

    Hi everyone, I am very new with SAP PI. I hope someone here could give me a guidance. I am trying to access the material master data from ECC 6 via SAP PI using web service. Is there any document for step by step instruction that I could follow? It i

  • One grey pixel v faster internal hard drive

    Hi everyone I bought my first ever imac 7 weeks ago and loving it. I bought the top end 27 inch i5 imac. But I have a question to put forward to (perhaps) some long time users here. What would you do? What is reasonable? What should I expect? Re.....

  • The Question of Infinity on graphs

    I need to plot an asymptotic trignometric tan graph using the following values: Independent_v Dependent_v -225 -.99999999999999999999999999999999999997 -180 0 -270 ~ -269 -57.289961630759424687278147537112577988 -89 -57.289961630759424687278147537112