Opening a servlet in new browser window

Does anyone know how you can make a servlet open in a a new browser window when clicking a link for that servlet.
cheers

Hi..
do
window.open("http://localhost:8080//yourservlet-path//servlet-name");
you can also set window properties, they are passed as parameters to window.open
see syntax of window.open. but this thing will open your servlet in a new window with default properties.

Similar Messages

  • Opening remote page in new browser window

    Hi there,
    my applet used the browser window as its frame, that means there is nothing else but the applet. I need to call a page from the same server as the applet resides, but to display the page in a new browser window. The following code could do the job, but caused the browser to block the popup.
    applet.getAppletContext().showDocument(new URL
                            ("http://mydomain/mypage.jsp"),"_blank");I'm wondering whether I could access a servlet from my applet and let the servlet accomplish this and how to.
    It would be also of interest whether it is possible to do the same with a page from a remote server and triggering the client to display the page in a new window.
    Any help is highly appreciated.
    Thanks in advance.
    Stephan

    Sorry, mixed up my versions a bit. The following code doesn't open a new window.
    try {
                JSObject window;
                window = JSObject.getWindow(this);
                URL url = new URL(this.getCodeBase(), "mydomain/mypage.jsp");
                window.eval("window.open(" + url +")");
            catch (Exception e) {
                e.printStackTrace();
    }It doesn't do anything, instead I'm getting the following output in the trace:
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = false
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JSObject::eval(window.open(http://localhost:29080/mydomain/mypage.jsp))
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = falseI'm testing this code on Linux, FIrefox 1.5.0.3 and JDK1.5.0_07.
    What I'm doing wrong?
    Thanks.
    Stephan

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • Open URL Link in new browser window

    Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
    Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

    Jono, if you are still out there.  I am also having trouble with this function.  The button works just fine, but it does not open another browser window.  I am trying to keep my pdf open, and send them to a url.  That way they can come back to the form. Like you would with the target="_blank" function in javascript.
    What am i doing wrong?  I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect.  I put target="_blank" and set it to javascript on just about every option.  I have tried to go into the code on the xml source tab, no luck anywhere.  I have tried to just use a text field, no luck.
    Seems like everything I have tried has no effect.
    Hopefully you can tell me it is something simple...
    Thanks in advance.
    Jodi

  • Opening driving directions in new browser window

    I have installed the Web Assist Google Pro Maps extension and
    would like for the div containing the driving directions results:
    <div id="wagmp_directions_2"
    to appear in a new browser window.
    However, when I open the tag inspector, it says "locked
    region" for the Google maps divs, even though I detached the php
    page from the template. Any ideas?
    http://www.lindafarronknapp.com/map.php

    Sorry, mixed up my versions a bit. The following code doesn't open a new window.
    try {
                JSObject window;
                window = JSObject.getWindow(this);
                URL url = new URL(this.getCodeBase(), "mydomain/mypage.jsp");
                window.eval("window.open(" + url +")");
            catch (Exception e) {
                e.printStackTrace();
    }It doesn't do anything, instead I'm getting the following output in the trace:
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = false
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JSObject::eval(window.open(http://localhost:29080/mydomain/mypage.jsp))
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = falseI'm testing this code on Linux, FIrefox 1.5.0.3 and JDK1.5.0_07.
    What I'm doing wrong?
    Thanks.
    Stephan

  • IWeb link opening in a external (new) browser window.

    Dear members:
    After making several unsuccessful attempts to find this information I decided to post a questions here to see if anyone has the answer.
    I have created two web site with several web pages in iWeb but haven't been able to add links to a page that open not in that same page but to open in an extra (external) browser window. Is there a way to make a link open in a different browser window than the one that has the page with the link ?
    Another question I have refers to iWeb's display of some images. For my web sites I chose one of the templates offered with the program. In one of the pages there are small portions of text followed by a square image next to it. Some of the images in iWeb work as placeholders that are replaced by the final images once they are dragged and dropped over them. However, this small images following the text don't behave like that. They simply aren't replaced. I tried to "overlay" the final images over the template ones thinking that once the site was published they would be replaced. Actually, after posting the web site I noticed that when the pages load the template images show up first and them the ones I placed over them beginning to cover them.
    Why is this happening and how can I solve this problem ?
    Thank you in advance for your help.
    Best regards,
    Joseph Chamberlain

    Dear varkgirl:
    Thank you very much for your help and valuable suggestion.
    I've tried your suggestion but ran into some problems. The links I am trying to open in another window are actually PDF files that the viewer can download from my website.
    Since I was having problems I decided to try something else. After publishing the website to my desktop I then opened the pages where the links are in Dreamweaver. The layout view is great and displayed the image just the way it appears on the browser's window. I first selected the "link button" to the file and then in the inspector windows (bottom of the page) I chose under target the "_blank" option. This tells the software that the linked page or file is to be opened in a new blank browser window. I then saved the page (re-saved it over the existing file) to incorporate the changes. After this I proceeded to navigate through the website and everything works great.
    Thank you for your help and suggestions. I just thought I would post this here in case it may be of help to you as well as others.
    Best regards,
    Joseph Chamberlain

  • Opening sales order in new browser window

    hi experts,
    i have ALV table in which one of the columns is sales order number. I made the column as hyperlink so that user can click on it. when the user clicks on this i am calling an event handler method which is linked on_click event of the ALV interface controller . i am able to capture the sales order number in the method. Now i want to call va03 transaction for this sales order in a new browser window. we are going to integrate this application in portal. any ideas?. i heard something about the object based navigation. how to do this?
    thanks
    Edited by: sudhakar murthy on May 12, 2010 6:04 PM

    Hi Sudhakar,
    Check out the below code to open a Transaction from WD in an external window and pass the value in that Transaction. I am passing the value here in the VF03 transaction's Billing document screen field .
      DATA: url TYPE string,
            host TYPE string,
            port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
      CONCATENATE host ':' port
      '/sap/bc/gui/sap/its/webgui/?~transaction='
      '*VF03 VBRK-VBELN=123456' " 123456 is the value you are passing into the Billing document screen field of the    
       INTO url.                                      "VF03   transaction
    *get the window manager as we are opening t code in external window
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Hope it helps you...

  • Open PDF link in new browser window?

    I'm viewing a newly created PDF in a browser.
    When clicking an internal link, the linked PDF loads into the same window
    I need it to launch in a new browser window.
    I have set the link to "launch new window" in Word where this file originated.
    I have also opened and resaved it in Acrobat 10 with preference "Open cross-document links in same window" deselected.
    Neither of these setting have change the behavior though all documentation I read seems to suggest they should.
    What am I missing here??
    -Blake

    That preference setting does not apply to web links and do not refer to a browser window, but an Acrobat window.
    There is a JavaScript method that might work. Try setting the link action to something like the following script:
    app.launchURL("http://www.example.com/", true);
    This was taken from the example here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.150.html
    The problem is if a user has Reader 10 and protected mode is enabled (as it is by default), it doesn't work and opens the link in the same browser window.

  • Do NOT want to open link in a new browser window - iWeb '09

    I do not want links that navigate around my website to open a new browser window every time. Right now, for example, From my main page, I click a link to a secondary page, it opens it in a new window, I then click the link back to my main page, and it opens in a new window. I now have 3 windows open.
    I am not using the navigation bar as it set ups with iWeb (I have it hidden). I am using hyperlinks I attached to text boxes. Would this problem be remedied if I was using the navigation bar? If so, is there anyway to edit the appearance of the navigation bar and it's location on the page?
    Primarily though, I would like my text hyperlinks to just navigate my page and not open in new windows.
    Thanks!

    And that's the way it should be.
    If you look at this page about navigation you'll see that the main navigation uses eternal links and the sub navigation internal ones....
    http://www.iwebformusicians.com/WebMusic/Navigation.html
    Try the troubleshooting steps under "Fix iWeb" here.....
    http://www.iwebformusicians.com/WebMusic/iWebTips.html

  • Open view in a new browser window

    Hi all,
    I want to open a view in a new browser window.
    I try this two code:
    1)IWDWindow window=
    wdControllerAPI.getComponent().getWindowManager().createExternalWindow(
              "http://www.google.it","google",false);
    but in this case i can only open an url...
    2)IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("ExternalWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    but in this case it open an internal windows, not an external new browser windows...
    What can i do?
    Thanks!

    Hello Andrea,
    you should call not "http://www.google.it" but result of something like this:
         public static String resolveURL(String dcName, String applicationName) throws EntryNotFoundException, WDURLException
              IWDDeployableObject deployableObject = WDDeployableObject.getDeployableObject(dcName);
              if(null!=deployableObject && WDDeployableObjectState.STARTED.equals(deployableObject.getState()))
                   boolean found = false;
                   int i = 0;
                   WDDeployableObjectPart[] parts = deployableObject.getParts(WDDeployableObjectPartType.APPLICATION);
                   if(parts!=null)
                        for(;i<parts.length;i++)
                             if( applicationName.equals(parts<i>.getShortName()))
                                  found = true;
                                  break;
                   if(found)
                        return WDURLGenerator.getApplicationURL(parts<i>, null);
                   else
                        throw new EntryNotFoundException( "Application '" + applicationName + "' not found" );
              } else {
                   throw new EntryNotFoundException( "Application '" + applicationName + "' not found in '" + dcName + "'" );
    Best regards, maksim Rahchnski

  • Open calling form in new browser window

    HI,
    I am using forms 9i. From menu item, i am calling a form using call_form, the called form is opening in same window, my requirement is the called forms want to open in new browser window. I am using mdi window.
    Any idea ?
    Regards
    Ramesh babu

    If you look in your browser address field, you will see your current forms has a (probably very) long url, one section of which is the form name. Now, you can use this as the URL argument in a WEB.SHOW_DOCUMENT() call. However:
    (1) if your URL doesn't include the userid, etc. (very likely in a production situation) you will have to log in again.
    (2) as (1) might lead to suspect, you are in a new database session.
    Why do you want to do this?
    Cheers, APC

  • RoboHelp 8 HTML - Open Hyperlinks in a New Browser Window

    [email protected]
    Hi all,
    I’m new to the RoboHelp community and have an issue I have not yet seen addressed elsewhere in the forums. I’m working in RoboHelp 8 HTML and am generating webhelp. My question is regarding hyperlink options. The option for open in a new window opens topics and links in a new tab. Is there a method, hacking or otherwise, for having the links open in a new browser window?
    Much thanks in advance.

    Hi,
    Welcome to Adobe forum,
    As I understand you are trying to open the hyperlinks in a new window instead of a tab.
    Well it is possible in Robohelp 8 HTML
    Here are the steps which you need to follow.
    1. Select the text Right click on it and then select Insert Hyperlink.
    Once you click on the Insert Hyperlink another Popup window will appear in your screen.
    You need to check this screenshot and select the appropriate option.
    Try and generate the Webhelp and see if that helps you,
    I hope that will resolve your issue.Please reply if that resolves your issue.
    Thanks
    Priyank

  • Opening a JSP in new Browser window

    Hi friends i want to open a JSP into new Window.
    Mean from one jsp i want to call another JSP,
    which should open in another browser window, and it should fills the feild automatically with default values.
    Can any one give my an idea how to implement this.

    Hi..
    do
    window.open("http://localhost:8080//yourservlet-path//servlet-name");
    you can also set window properties, they are passed as parameters to window.open
    see syntax of window.open. but this thing will open your servlet in a new window with default properties.

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to open a new browser window without toolbar, location, and menu bars from AIR?

    I have the following problem in my Flex+AIR application. I need to embed an ActiveX component that has JavaScript API inside my application. I tried to embed it inside <mx:HTML> component but unfortunately, AIR doesnot support plug-ins or ActiveX controls. So I've decided to open it in a new browser window. I tried navigateToURL(...) method but it has two problems - it is opening a new tab in the existing browser window and there is no way for me to configure the new browser window appearance, like removing toolbar, menu bar, location bar, etc. Then I tried to open a new window from JavaScript running inside <mx:HTML> component using window.open(...) API but it doesn't open a new window at all.
    Is there any way for me to open a new browser window without toolbar, location bar, etc. (which will run ActiveX control, so it cannot be AIR window) from inside AIR?
    Best regards,
    Arkady.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

Maybe you are looking for

  • Acrobat 9 Shared Review on a LARGE scale - help!

    We have a client that is looking to deploy PDF Shared Review company-wide. It will be a mix of Macs and PCs initiating reviews so Sharepoint does not look to be an option. At this point, it appears that WebDAV is the way to go. I suppose the concern

  • How can I get Copy and Paste to work?

    It doesn't work with the key pad, ctrl v, or in edit.  Copy and paste always worked for me and just quit working a few days ago.  I have not done anything different with the computer- no new programs, setting changes, etc.  I just can't paste anymore

  • Question about voice and data plan for Europe

    I am in New York and my boss is going to France for a week and a half. He told me he will not have access to the internet there. He asked me to find out if it would be possible to get a voice and data plan for the month that he will be there, and if

  • How to schedule the process chain fr the report

    hai experts, i have a query which i need to generate for every five hours? i know that we can generate the report thr process chain but i dont know how to build that.. my question is how to schedule the report,how to build the process chain,.... can

  • Exporting camera videos to YouTube from iPhoto

    So like all modern digital still cameras, mine takes HD video too. And iPhoto downloads both the videos and photos into my iPhoto albums. How can I export the videos directly to YouTube? Is there a YouTube uploader plug-in? Having to use iMovie is a