Browser window without toolbars from Servlet ?

I have a JSP page which POSTs to my servlet a form that requires a query on a database. When the result is received from the database I dynamically build the HTML results page in the servlet by transforming it using a stylesheet. I then write out the result page in to a new window (target set to "_blank").
How can I get the results window to have no toolbar, status bar, and set it's size to exactly match that of the result page data ?
In my servlet I have code similar to :-
PrintWriter writer = response.getWriter();
response.setContentType( "text/html" );
writer.println( htmlResults );
I've tried to do a "response.setHeader( 'toolbar', 'no' )" but that doesn't remove the toolbar from the result window.
Thanks.
Sarah.

Thanks. I've just been mucking about with some Javascript and have got this to work by using a a window.open() command and then setting the menu "target" to be my new window.
Works a treat.
Sarah.

Similar Messages

  • How to call a servlet in new window without toolbar from OA page

    How to call a servlet in new window without toolbar from a OA page?Please provide sample code

    I have tried with the way suggested in Mukul's blog using javascript in Destination URI property.
    I tried to open a OA Page and from which forwarded it to a servlet..
    It is showing the error:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

  • 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.

  • New browser window without Border

    Hi ,
    How I can achieve of on clicking commandlink need to open a new browser window without a border as a child and having the parent window in background as frozen mode..I need to have it looking similar to popup..Im using Jdeveloper 11.1.1.6
    Thanks in advance,
    Kumar
    Edited by: user1153329 on 19-Apr-2013 03:02

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

  • Opening new HTML window without toolbars and set size.

    Hi, I am researching the possibilities for opening a new HTML
    window without toolbars and at a certain size. I have found a bunch
    of tutorials and even this guide here at adobe:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14192
    BUT
    I work in Flash 8 and I use Dreamweaver 8.2 (with all the
    latest updates). As you know Dreamweaver uses Java Script to
    implement Flash into a HTML page. By generating a folder called
    Scripts and the file AC_RunActiveContent.js
    So I tri the methods described in the above technote. I even
    found a guide at kirupa...and at flashkit. I even downloaded an
    example file from Flashkit. But any implementation of any of the
    methods above in a Flash 8 file implemented with DW does NOT work.
    I am not a hardcore programmer. I am more the kind of guy who
    finds code that works and moulds it to my purpose. Copy and paste
    programming if you may. So its not so easy for me to see why it
    wont work and where the problem is. But I do have a suspicion
    towards the javascript flash implementation that Dreamweaver does.
    So if anyone have guide or tips to how I can use Flash 8 and
    DW 8.2 and get flash to open a new HTML window with a certain size
    and without scroll or toolbars..that would be GREAT!!
    Thanks in advance!
    AKIRA

    AKIRA,
    The TechNotes are from the Cold Fusion site at Adobe. I am
    not certain, but I think that you need to be using Cold Fusion on
    your websites server to be able to use the functions to which you
    refer. Again, I am not certain that I am right here, but it could
    be a place to start research into the problem.
    -john

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Open new browser window without bookmark

    when i open a new browser window (from a bookmark or using cnt N) it opens with the list of my bookmarks along the left side of the screen forcing me to x out of the bookmark list so i can have a full browser window page.
    how can i get new pages to open without the list of bookmarks on the left side of the screen?
    thanks,
    todd

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

  • Open new browser window without buttons, menus or URl-field

    Hi All
    How do you make an APEX-link open a new browser window with no toolbar?
    Brgds
    Helge

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

  • E-Mail Browse Window Has Wrong From Information

    I have recently started having a problem with the message browser window in the latest version of Mail (Tiger installed, with updates through 10.4.5) where the FROM column does not accurately reflect the name of the sender on multiple messages. When I started this inquiry my inbox reflected multiple messsages FROM Ester Ferreira. (Not all of the messages, just messages that had no address book entry WHEN THEY ARRIVED.) However, when I highlight each of these messages the text of the messages themselves indicate that none is from Ester Ferreira. Indeed, a search for Ferreira using the Mail search tool shows no messages EVER from or to Ester Ferreira. However, the incorrect name is not ALWAYS Ester Ferreira. Earlier today the messages were from WorldWinner and before that from some other name having no connection with me nor my computer (none of the names so far has shown up in my Address Book nor even in a Spotlight search of my hard disk). A moment ago, all the messages appeared to be FROM Donut Offer. NOW they all appear to be from A New Years Gift For You.
    There seems to be some relationship between me switching to look into different mailboxes and the switching of the names appearing the FROM area.
    I have tried running disk utility to fix permissions and repair the disk (there are always erroneous permissions, especially related to Widgets, and the disk never needs repair). I have also tried rebuilding my mailbox and just quitting and restarting Mail. While I thought fixing permissions was having a positive effect, I now believe that was just coincidental, as the problem quickly resurfaced after permissions have been fixed when that helped, and recently fixing permissions has not helped at all.
    G5 Dual 2 and PowerbookG4 1.33 GHz 17   Mac OS X (10.4.5)  

    Click "Options" (top-right of Mail web page), then "More Options".
    Select "Accounts" from the menu on the left and then the relevant account from the column in the middle. Mine's called "BT Yahoo!". In the right-hand pane you should now be able to change both the Reply-To and the 'From' name.

  • Fixed size browser window pop-up from flash?

    Hi there... I'm finishing off a flash website for a band and
    I've created a little music player that's 380 x 250 pixels...
    There's a "launch music player" button in my site and when pple
    click on it, I'd like the music player (which is a flash file
    embedded in an html file) to pop up in it's own little browser
    window. I know how to make normal full size windows pop up (by
    using the: getURL("location", "_blank").... function) but I need a
    browser window that doesn't scroll and isn't resizeable, with a
    fixed size of 380 x 250 to pop up. I know how to do this in HTML
    (dreamweaver), but not in flash - can anyone help?
    Mal

    Using the getURL function you can call a specific javascript
    function where you can create a new window with specific size:
    getURL('javascript:FUNCTION();');
    Cheers,
    Gorka

  • Why do my tabs become tiled windows without input from me? I have to double-click the tab to make the windows disappear, sometimes more than once. This is annoy

    This happens when I have several tabs. I'll click another tab and a tiled window appears with one window being the page of the tab and the other one the tab beside it. It's become quite annoying.

    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thanks!
    Curtis

  • Opening Browser Window from Hotspot without Browser Toolbars, etc

    Hi Guys
    Can you help please.
    I have a map with some ponds. I've made hotspots for these ponds to open separate pages with some images and info but I really don't need the page to display the toolbars and favorites, etc. I have gone into behaviors and set them to open the browser as I want when I click on the hotspot. Fine. The trouble is it also opens a full browser window as well! Can anyone point me to hoe and where I can set the behaviors so I get only one browser window, without the toolbars, etc?
    Thanks & regards,
    Graham

    Making Pop-Up windows in DW
    http://alt-web.blogspot.com/2010/02/making-pop-up-window-in-dreamweaver.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How do you run a servlet with no effect on the browser window?

    Is it possible to send parameters to a servlet (using POST or, if necessary, GET) from an application or html page running in a browser, without causing the current browser to be redirected, and without opening a visible new browser window to run the servlet?
    If so, can you explain how to do this?

    Sure, you could embed it as an image tag.
    <img src="http://yourserver/servlets/MyServlet?param1=foo&param2=bar" height=1 width=1>
    This will probably produce a broken image in some browsers, unless you have your Servlet send a 1x1 pixel image to its output stream.
    -Derek

  • Opening a new URL in an existing browser window from a Java application

    I've tried one of the many codes to open a new browser window and it works, but I need something else.
    Is there any way to open a new URL on the same window on a Java desktop application? (Changing the URL on the current browser window without opening a new one, I mean).

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • Close Browser window from JApplet

    I'm writing an applet that has to launch an asp page to accomplish a task. Is there any way to run this page with an AppletContext, (showDocument()) and then close the browser window without the user seeing the window open?
    Thanks,
    eemanuel81

    launch an asp page to accomplish a task.You can use the URL object in Java, this will make the http request to the asp page sharing the browser's cookie (in IE and Moz on windows).
    If the applet needs to make a connection to antother server than the one the applet came from you might be in trouble. You have to sign the applet or the user needs to set up a policy for it.
    Signing your applet:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post
    Posting data:
    http://javaalmanac.com/cgi-bin/search/find.pl?words=url+post

Maybe you are looking for

  • Re: Can't increase monthly payments online

    SORRY HAD TO COME THROUGH YOUR POST TO ASK QUESTION DONT REALLY UNDERSTAND HOW TO USE FORUM . ANYWAY 6 JUNE CONTACTED BT ABOUT CHANGING BILL DATE FROM 22 TO 30 OF MONTH SAID I COULDNT DO IT COS I PAY IN FULL EVERY MONTH ANYWAY THEY SUGGESTED I CHANGE

  • How to get Freight Break-up in PLDs?

    My Client requirement is to display various freight break-up in PLDs.They are using Insurance,Transport,Loading etc as various freight category. I need to know is there any formula to make a break-up of freight in PLDs that shd mention Insurance Char

  • Query in HR report category

    Hi All, My requirement is: I am displaying standrd PNP selection screen. When i select the test run checkbox i should hide the std selection screen. I am able to hide all the fields in the stdandard selection screen but i am getting the empty block.

  • VL10G Delivery Creation from Sales Order

    I am facing a problem where if I go to create delivery from VL10G, all the line items from the sales orders are transported to the delivery document EVEN when no stock is available? Can anyone help me out Thanks

  • Required help in Partner Determination BADI

    Hi, I need to implement a BADI in Transaction CRMD_ORDER, When I Go to transaction CRMD_ORDER - > Business Transaction -> Create, enter a Partner No and press enter, it should fetch the corresponding Owner field for that Partner No, which is maintain