Servlet application MIME type browser window issue

Hi,
I am writing a servlet that launches an application on a citrix server and as such the MIME type is as below:
response.setContentType("application/x-ica");
The user is supposed to click an internet explorer link on their desktop and the application will open, however currently a browser window opens and remains blank while the application launches and does not close until done so manually. I have seen examples where users can click a link and the browser window closes itself straight away, and the application continues to launch.
Can anyone advise how to correct this problem?
Thanks.

I've found out what the problem was, wasn't related to the servlet itself it was a client side custom component making multiple requests, which the app replied to with different content types.
Thanks.

Similar Messages

  • DW CS3 - open browser window issue

    I've set up some text links to open a new browser window and
    it's working fine. But - the original page (from where the link
    opened the new window) is also loading the same page as the new
    window. I want the original page to remain unchanged. What am I
    doing wrong?? Thanks in advance for any help.

    jcecz wrote:
    > never mind...found it!
    > the missing #
    hmm, sounds like you may have solved your problem in an
    undesirable way.
    I am guessing now, but your solution replaces the href value
    with # ?
    That will work, however it will also make it impossible for
    folks with
    javascript turned OFF - or Search Engines which do not use
    javascript -
    to reach your linked page. Instead do this:
    <a
    href="
    http://www.temple.edu/photo/photographers/cartier_bresson/pages/boy.htm"
    onclick="MM_openBrWindow('
    http://www.temple.edu/photo/photographers/cartier_bres
    son/pages/boy.htm','','scrollbars=yes,resizable=yes,width=400,height=500');return
    false">Henri Cartier-Bresson</a>
    Notice I inserted ";return false" in there. Now everyone will
    get to
    see your linked page, with or without javscript.
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Open Browser Window Issue

    I've setup a table using a spry vertical navigation bar in
    each cell. I then set the second level (flyout) item to use a
    clickon open browser window with a size set at 300 x 300 px....
    now, when I test the code in Safari, I'm getting two windows that
    open in the correct size, one right on top of the other.. but,
    while the top window is the correct link, the bottom window is the
    same file that opens with all the links... I'm hoping this makes
    sense.. I may be trying to do something that shouldn't be done
    using a Spry bar....when I try to remove the # in the first link,
    the spry code is removed... this is probably my lack of java script
    knowledge.... I've attached my code...
    Is there anything I can do, or should I abandon the idea...?
    thanks.
    Jill

    jcecz wrote:
    > never mind...found it!
    > the missing #
    hmm, sounds like you may have solved your problem in an
    undesirable way.
    I am guessing now, but your solution replaces the href value
    with # ?
    That will work, however it will also make it impossible for
    folks with
    javascript turned OFF - or Search Engines which do not use
    javascript -
    to reach your linked page. Instead do this:
    <a
    href="
    http://www.temple.edu/photo/photographers/cartier_bresson/pages/boy.htm"
    onclick="MM_openBrWindow('
    http://www.temple.edu/photo/photographers/cartier_bres
    son/pages/boy.htm','','scrollbars=yes,resizable=yes,width=400,height=500');return
    false">Henri Cartier-Bresson</a>
    Notice I inserted ";return false" in there. Now everyone will
    get to
    see your linked page, with or without javscript.
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Browser window issue

    hi. really sorry i have a dumb question. i have a web site
    which i helped design and build and did the original work in cyber
    studio. since it has been changed and im now on dreamweaver 8 for
    mac.
    in my web site i have images that are small and when you
    click on them they pop up in a new window the size of the image -
    not a full web page - my problem is i have changed some images but
    the pop up windows are the same size and i cant figure where or how
    to re-size them to the size of the new image
    is there a simple way of someone explaining to me how to do
    it please
    many many thanks
    kind regards
    nuxes

    Perhaps if you give us a link to your page?
    emichael brandt
    nuxes wrote:
    > hi. really sorry i have a dumb question. i have a web
    site which i helped
    > design and build and did the original work in cyber
    studio. since it has been
    > changed and im now on dreamweaver 8 for mac.
    >
    > in my web site i have images that are small and when you
    click on them they
    > pop up in a new window the size of the image - not a
    full web page - my problem
    > is i have changed some images but the pop up windows are
    the same size and i
    > cant figure where or how to re-size them to the size of
    the new image
    >
    > is there a simple way of someone explaining to me how to
    do it please
    >
    > many many thanks
    >
    > kind regards
    >
    > nuxes
    >

  • Run same 9i forms servlet in different browser windows

    Hi all,
    I'm using Oracle9iAS Forms Service to deploy the forms. The problem that I have, is that I'm not able to run the same forms 9i servlet in two different browser windows.
    I'm able to run the 9i test form with the following URL in browser window one: http://HOST:PORT/forms90/f90servlet
    When I then try to run the same URL in a second browser window I get the following error:
    FRM-92050: Failed to connect to the Server: /forms90/l90servlet:-1
    Details...
    Java Exception:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    I'm using Jinitiator 1.3.1.9 to run the forms.
    Thanks,
    Oliver

    Iam trying to work with menus.
    I have created a menu item EMPLOYEE and calling the employee form like this
    BEGIN
         RUN_PRODUCT(FORMS, 'EMPLOYEE', SYNCHRONOUS, RUNTIME, FILESYSTEM, '', '');
    END;
    But what happens is iam getting the error
    FRM-92101: There was a failure in the form server during the startup. This can bappen due to invalid configuration. Please look into the webserver log file for detail.
    Oracle.Forms.Net.ConnectionException: Connection for new browser window not supported.
    Following is the content of Application.Log
    06/12/16 16:59:08 Started
    06/12/16 16:59:24 formsweb: jsp: init
    06/12/16 16:59:24 formsweb: frmservlet: init
    06/12/16 16:59:24 formsweb: FormsServlet init():
    configFileName: D:\DevSuiteHome_1/forms/server/formsweb.cfg
    testMode: false
    06/12/16 16:59:24 formsweb: Started
    06/12/16 16:59:33 formsweb: lservlet: init
    06/12/16 16:59:33 formsweb: ListenerServlet init()
    06/12/16 17:06:43 formsweb: Connection from new browser window not supported
    06/12/16 17:06:57 formsweb: Connection from new browser window not supported
    06/12/16 17:13:24 formsweb: Connection from new browser window not supported
    06/12/16 17:14:07 formsweb: Connection from new browser window not supported
    06/12/16 17:15:57 formsweb: Connection from new browser window not supported
    This happens when i try to run more than one form in a browser.
    When i try to run the employee form seperately i have no problem
    Iam using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    can you help in this.

  • Applet-to-Servlet results in a new browser window

    Hi Everyone,
    I am trying to show a page generated by some servlet in a new browser window when the button is clicked on the applet. I can accomplish that by using AppletContext as in:
    myApplet.getAppletContext().showDocument(servletUrl, "_blank");
    The only problem with this is that I don't have any control over how the new browser window is displayed. Using JavaScript I can set size, hide toolbar and address bar, etc. But how can I hide address bar on a new browser window generated in this scenario?
    I tried to call intermediate servlet from my applet which in turn generates a new window by writing out JavaScript code. This way I lose my previous page with the applet even though a new window is displayed the way I wanted but I want this new browser window to act as a pop-up box and my applet page stay on screen. Also, is there a way to send a POST request from an applet by using AppletContext.showDocument() method?
    Any help will be greatly appreciated!
    Thanks in advance,
    Y.M.

    Hi,
    You can specify an intermediary html which inturn will make the call to servlet.
    myApplet.getAppletContext().showDocument(html,
    "_blank");
    in the HTML onload make a call to servletURL using
    self.open(servletURL, "_self", options);
    in the options you can specify size, toolbar, etc.
    Hope this helps.
    KD
    Hi Everyone,
    I am trying to show a page generated by some servlet
    in a new browser window when the button is clicked on
    the applet. I can accomplish that by using
    AppletContext as in:
    myApplet.getAppletContext().showDocument(servletUrl,
    "_blank");
    The only problem with this is that I don't have any
    control over how the new browser window is displayed.
    Using JavaScript I can set size, hide toolbar and
    address bar, etc. But how can I hide address bar on a
    new browser window generated in this scenario?
    I tried to call intermediate servlet from my applet
    which in turn generates a new window by writing out
    JavaScript code. This way I lose my previous page with
    the applet even though a new window is displayed the
    way I wanted but I want this new browser window to act
    as a pop-up box and my applet page stay on screen.
    Also, is there a way to send a POST request from an
    applet by using AppletContext.showDocument() method?
    Any help will be greatly appreciated!
    Thanks in advance,
    Y.M.

  • Excel Mime Type

    I am creating a web-based application and the PHP server needs a bit of information that is provided by the browser, the mime type of a file upload, particularly an Excel file.
    In Safari 3, on my Mac, the mime type for .xls files is application/vnd.ms-excel and using this in my code works perfectly. However, I'm not sure this is the same for a Windows based Safari 3. This would change wouldn't it? Im guessing that the mime type for Windows is application/excel but I would like confirmation please. Can someone confirm the mime type for .xls files using Safari 3 for Windows?
    Thanks for reading, and have a great holiday season!

    wow, i forgot about this post, but just noticed that i had an unresolved question. i found my answer, it's the same mime type for windows as it is for mac. application/vnd.ms-excel

  • Reg: Closing and Opening Web Dynpro Application in same browser

    Dear Experts
    In my webdynpro application when i click a button another web dynpro application is opened in another window(another browser) .
    But i want to open the second web dynpro application inside the same browser in which closing the first applicaiton and opening the second web application in same browser window .
    Please guide me to do this.
    Regards
    Arun

    hi ,
    Exit plugs have the special property that they use the defined URL parameter. After you have created the URL parameter in the parameter list on the Outbound Plugs tab page in the window editor, you can specify a value for this parameter in the method that calls the exit plug.
    ref
    link:[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm]
    it would help u
    regards,
    amit

  • How to show an HTML page in a new browser window

    Hi Everyone,
    I am trying to show a page generated by some servlet in a new browser window when the button is clicked on the applet. I can accomplish that by using AppletContext as in:
    myApplet.getAppletContext().showDocument(servletUrl, "_blank");
    The only problem with this is that I don't have any control over how the new browser window is displayed. Using JavaScript I can set size, hide toolbar and address bar, etc. But how can I hide address bar on a new browser window generated in this scenario?
    I tried to call intermediate servlet from my applet which in turn generates a new window by writing out JavaScript code. This way I lose my previous page with the applet even though a new window is displayed the way I wanted but I want this new browser window to act as a pop-up box and my applet page stay on screen. Also, is there a way to send a POST request from an applet by using AppletContext.showDocument() method?
    Any help will be greatly appreciated!
    Thanks in advance,
    Y.M.

    Did you ever figure out a solution for this? I too would like to open a new browser window to act as a pop-up box and my applet page stay on screen. If anyone has any thoughts on how to do this, please post! thanks.

  • Opening of an ADF applcn in a new browser window from another ADF applcn.

    The requirement is in the form of a usecase below, can you please let us know how could we resolve this.
    Let us consider we have two ADF applications A and B. Once ADF application A is rendered, in one of the pages of Application A there is a link which takes us to Application B. We want to open the ADF application B in a new browser window.
    There is one more restriction here, the first time the link in Application A is clicked it should bring up the Appliciation B in a new window say W2 , later on if the person clicks multiple links from Application A it should refresh the exisiting open window W2 with the Application B. i.e we do not want multiple windows to come up for a single link.
    I do see the commandlink has a usewindow=true ,this is the functionality we want. basically the first time the link is clicked a new window should pop up, later on every click of the command link we want to refresh the same open window which had come up the first time the command link was clicked.
    Edited by: user504058 on Nov 9, 2010 6:05 AM

    I did try using the Golink with targetFrame with all the values "_blank", "_parent", "_self" , "_top". with targetFrame value set as _blank it brings up multiple windows.
    Let me be more clearer, I do have application A in browser window say W1 and when i click a link from Application A present in browser window W1 the Application B should open up in new browser Window W2. And further on simaltaneous clicks on the link in Application1 should only refresh the Window2 with Application B.
    i.e, at any given time i want only two windows to be present i.e, W1 and W2.

  • Libreoffice mime-type icons

    Hi,
    i'm curious to know if i'm the only that have ugly mime-type icons for LibreOffice files (.odt .doc .ods ...)
    Before
    I like to see the original LibreOffice mime-type icons, so after a lot of research on the web i've found the solution.
    Following this http://standards.freedesktop.org/shared … atest.html
    The applications mime-type action are stored under /usr/share/mime/packages.
    Here you can find /usr/share/mime/packages/libreoffice.xml the LibreOffice mime-type file and if you open it you'll find something like that:
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    In order to see the original icon in Nautilus / Dolphin you simply have to add a line of code that call the proper mime-type icon for example:
    <icon name="libreoffice-oasis-text"/>
    You have to do this for every mime-type type.
    The follow example is for "OpenDocument Text"
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <icon name="libreoffice-oasis-text"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    And after this work you can see something like this in Nautilus / Dolphin
    After
    If someone if interested i can post the updated libreoffice.xml file.
    mod edit: Hello gspe, please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
    Last edited by fsckd (2011-11-07 20:05:21)

    After a bit more research i've found the correct solution for the problem.
    The problem actually is that the libreoffice mime-type icons follow a wrong naming.
    For example if you go in /usr/share/icons/gnome/48x48/mimetypes
    libreoffice-oasis-text.png
    shoud be
    application-vnd.oasis.opendocument.text.png
    And so on for all entry in /usr/share/mime/packages/libreoffice.xml

  • Opening new browser window stops automatic refresh

    hello,
    I have an application in one browser window. this browser window refreshes periodically. In the jsp which is displayed in this window i have a link which opens an other jsp in a new small browser window with additional informations using javascript. my problem is that using this link stops the automatical refresh of the main window. anybody an idea what could i do? greetz Ren�

    if I use setTimeout and the user doesn't have Javascript enabled, how will I refresh? ... hmmm... maybe meta-refresh...
    My guess is that the browser is taking the link click as a sign that the browser is leaving the page (even though it's not) and stopping the meta-refresh timer for the page...
    Probably your only choice is to use Javascript, the link's onclick handler can reload the current page to make things reset... or manage setTimeout() function to reload the page or something.

  • No browser window

    Firefox 3.6.8 appears as a process in WinXP SP3, but not as an application. The browser window fails to open and I'm forced to reboot the computer to kill that instance of Firefox. Internet Explorer suffers the exact same behavior, appearing as a process when started but not as an application. This has happened before while using an earlier version of Firefox (3.o) on an earlier version of Windows (XP SP2). I've been configuring a clean installation of Windows, testing Firefox with each added driver and installed piece of software but I can't pinpoint what is causing this terminal breakdown of the browsers. I've started from scratch with this Windows installation at least 5 times already, and it's beginning to piss me off. Any insights will be greatly appreciated.

    hanes14,
    Quit Safari, and find the com.apple.Safari.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder.
    Drag the file to you Desktop, log out/in or restart and let us know what happens.
    ;~)

  • Caching MIME types in browser using a servlet (independent of the app-code)

    We are using jboss 3.2.6 app server to deploy an ear. To reduce the server round-trips and network latency, we created a servlet that caches various MIME types in the browser.
    package foo.bar.nw.cache;
    import java.io.IOException;
    import javax.naming.directory.DirContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.catalina.servlets.DefaultServlet;
    public class TomcatDefaultServlet extends DefaultServlet {
         protected void serveResource(HttpServletRequest request,
                   HttpServletResponse response, boolean content) throws IOException,
                   ServletException {
              super.serveResource(request, response, content);
              DirContext resources = getResources();
              String path = getRelativePath(request);
              ResourceInfo resourceInfo = new ResourceInfo(path, resources);
              String mimeType = getServletContext().getMimeType(resourceInfo.path);
              System.out.println("mime type = " + mimeType);
              if (mimeType != null
                        && (mimeType.equals("image/gif")
                                  || mimeType.equals("text/javascript")
                                  || mimeType.equals("image/jpeg") || mimeType
                                  .equals("text/css"))) {
                   response.setHeader("Cache-Control", "max-age=7200");
    }The above code set the max-age to 2 hours. We created a jar file for the above class and deployed it C:\sw\jboss-3.2.6\server\<server-config>\deploy\jbossweb-tomcat50.sar
    And also made the appropriate entry in the file C:\sw\jboss-3.2.6\server\<server-config>\deploy\jbossweb-tomcat50.sar\conf\web.xml.
    The problem is that sometimes the 'expires' attribute of all the files in Temporary Internet Files shows date-time and sometimes it shows 'None'.
    We tried using the code below but no luck.
    response.setHeader("Expires", "Mon,18 Jan 2038 16:00:00 GMT");
    Not sure on how to verify if they are getting cached on the browser (IE 6).
    Any help will be appreciated.
    - Rahul Mittal
    Edited by: Rahul.Mittal on 16 Dec, 2009 4:53 PM

    My appologies for posting it into wrong forum. It should have been posted to Web Tier APIs > Java Servlet

  • Application Mime File Type Preferences

    I'm stumped!
    I've gone through the entire user preferences, application support files, and library files and still cannot locate which file is containing the settings for mime type application association with .php files.
    I am having an issue with Firefox only downloading .php files instead of displaying them in the firefox browser. The .php files continue to be associated with the dreamweaver extension and icon and continue to to tell firefox to download instead of rendering.
    I was so frustrated, I did a clean install onto another hard drive (OS X 10.3.9 drive 2)and was able to get firefox to work on the new system os. Again, I have trashed all the dreamweaver files, trashed all the firefox files and settings and even after doing a reinstall of firefox I continue to get the same issue on the older install 1 os x (10.3.9 drive 1). Drive 1 has all my precious files, years of settings and other data that I want to keep. I just want firefox to render .php pages off my local drive instead of trying to download them.
    Can anyone help me find the file I need to trash to make this happen? What am I missing?
    Thanks,
    Frank Beier
    Findlay, Ohio

    File and application associations are set using the Get Info window by selecting the file and pressing COMMAND-I. Settings are controlled in the Open With section. You can also use the freeware preference pane RCDefaultApp (www.versiontracker.com or www.macupdate.com.)

Maybe you are looking for