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)

Similar Messages

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

  • Post to servlet in new window

    Here's the problem. I know how to post to a servlet and create a new window:
    action="servlet" target="_blank"
    ....and I know how to create a new window without toolbars:
    javascript:window.open("servlet", "servletPage", "toolbars=0")
    However I can't seem to do both. I need to send a post to a servlet that shows up in a new window without toolbars. Just calling a javascript function simply opens up a new window of the initial page without triggering the servlet. Any ideas?

    Open the new window and then do the post with the target being the new window.
    <form name=MyForm action="servlet" target="servletPage">
    <input type=button name=subButton value=Submit onClick="doSubmit();">
    </form>
    <script language=JavaScript>
    function doSubmit() {
             javascript:window.open("", "servletPage", "toolbars=0");
             document.MyForm.submit();}
    </script>

  • How to pen new window while redirecting to a page

    Hi,
    I have a jsppage 1,jsppage 2 and aspPage. In jsp2 I am getting the
    values from jsp1 using request.getParameter("hhhh").Once I get
    all values in jsp2 , as soon as I got the values I need to redirect to asp from jsp2.
    I don't have any form or any button in jsp2.When I do submit in jsp1,
    immediately it has to open asp page in new window. My question is how
    I open the asp in new window in this redirection case .....?.
    I tried this way but not working ...
    WebsiteUtils.sendRedirect(request,response,window.open("ASP page"));
    I know if I have submit button in jsp2 I can write a javascriptfunction
    to opennew window but here the case is different....
    Appreciate your reply.
    Thanks

    On jsppage1, instead of using a from submit button, you can create abutton and write th onClick as
    <input type="button" value="OK" onClick="window.open('jsppage2.jsp','win2');">
    Now in Jsppage2.jsp, after doing all the processing, use sendRedirect to call jsppage3.jsp.
    Since jsppage2 is never being displayed, page3 will bw the one which will be shown in the new window opened by the name win2 on onClick.
    If I have understood your requirement correctly, then this should work for you as I have tried it out.

  • How to call a servlet  by  java standalone application

    //program related to calling a servlet by java standalone application and printing the response on console
    import java.io.*;
    import java.util.*;
    import java.lang.Object;
    import java.net.*;
    public class Program
         public static void main(String s[])
         System.out.println("Hello this programm defines about how to call a servlet with a java application ");
         try{
              URL servlet = new URL("http://localhost:8080/anchor/studentform.html");
              URLConnection conn=servlet.openConnection();
              conn.setDoOutput(true);
              InputStreamReader isr=new InputStreamReader(conn.getInputStream());
              BufferedReader br = new BufferedReader(isr);
              String str =br.readLine();
              System.out.println("Source code is" +str);          
         catch(IOException e)
         System.out.println("exception is" +e);
    i am able to read only one line of the form, please help me out to read the whole form (file)

    You are only reading one line? Why aren't you reading the data in a loop? E.g. a while loop. (Keep reading till readLine returns null)
    Kaj

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • How to call jsp /servlets running in different web application in tomcat

    hello all,
    i have 2 web applications(Charts and Reports) in the same tomcat,i want to call jsp/servlets running in the Reports webapp from Charts webapp.how do i achieve this.
    thanx
    ravi

    You can also use getContext(String context) in the ServletContext class to get a request dispatcher.
    Using the above example it would be :
    // in a servlet in the charts webapp
    ServletContext context = getServletContext();
    ServletContext reportsContext = context.getContext("/reports");
    RequestDispatcher dispatcher = reportsContext.getRequestDispatcher("/path")
    dispatcher.forward(request, response);Just note, that depending on your server's configuration getContext(...) might return null.

  • How to open WD- Adobe form open in new window -without Portal header

    Hi,
    In my WD application -MAINVIEW , I made 2 different groups under ROOTUIELEMENTCONTAINER
    GROUP1 -Selection fields with search button - with ROW LAYOUT
    GROUP2 -INTERACTIVE FORM - with FLOW Layout
    Basically when we click the Search button I get the form in the same view underneath GROUP1.
    I am calling this WD application in Portal by giving the hyperlink via BSP application.So when they run the WD application now With portal headers it is still becomming heightwise small area.
    Is there a way with which we can open form in completely new window  without the Portal Headers?
    Rgds
    Vara

    yes.. you can launch the form from a selection screen into a new window...
    I am using this to launch an editable PDF from a selection screen into a new window. This code is placed on the event handler of my Create button on the selection screen.
      DATA: str TYPE string,
            l_window1 TYPE REF TO if_wd_window_manager,
            l_cmp_api TYPE REF TO if_wd_component,
            result TYPE REF TO if_wd_window,
            lt_parms TYPE TIHTTPNVP,
            ls_parms like LINE OF lt_parms.
      ls_parms-name  = 'OPERATION'.
      ls_parms-value = 'C'.
      APPEND ls_parms to lt_parms.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'your_wd_application_here'
          in_parameters = lt_parms               " <- any URL parameters you need to send
        IMPORTING
          out_absolute_url     = str.
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window1 = l_cmp_api->get_window_manager( ).
      result = l_window1->create_external_window(
        URL = STR ).
      result->open( ) .
    You have to be aware, though, that you will lose ALL your context data b/c you are opening a new user session. That's why I had to use url parameters to pass data to my form.

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

  • 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

  • When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it, fix?

    When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it. I've tried switching my homepage to different things (new tab, firefox home, show blank page) but I always get an additional new tab to open. How do I get only a single page to open?

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    '''For Firefox versions previous to 29.0:'''
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox"[[Image:Button reset]] button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    '''For Firefox 29.0 and above:'''
    #Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''.
    Now, a new tab containing your troubleshooting information should open.
    #At the top right corner of the page, you should see a button that says "Reset Firefox"[[Image:Button reset]]. Click on it.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc

    Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc.. Please Help!

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • My computer crashed.    How do I sync with a new computer without losing unsaved data?

    My computer crashed.    How do I sync with a new computer without losing unsaved data?

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For items you cannot get the above way use a third-party utility such as Phone to PC

  • Hi my laptop with my itunes lubrary has crashed so i got a new one but i dont want to sync my iphone to the new laptop incase i lose all my songs on my iphone. how do i sync to a new one without losing everything

    hi i need help
    hi my laptop with my itunes lubrary has crashed so i got a new one but i dont want to sync my iphone to the new laptop incase i lose all my songs on my iphone. how do i sync to a new one without losing everything

    The right way is to restore the backup that you kept of your old computer onto your new one. If it is too late for that before you do anything set up a backup process for the new one so when it crashes (note I said "when", not "if") you won't be faced with this problem again.
    In lieu of that the apps already mentioned will help you get content off the phone if it was not purchased from iTunes. But it it WAS purchased from iTunes just connect the phone to your new computer, Authorize iTunes on the new computer and choose "Transfer Purchases" from the iTunes file menu.

Maybe you are looking for

  • In my ipod classic 60gb fifth generation: it doesn't work anymore music

    please anybody can help me! I've got an IPOD Classic 60gb 5th generation (year 2006) my radio support still working but i can't hear music anymore! why?

  • Query on Personnel Actions

    I have a few personnel actions like "Trainee Extension", "Probation Extension", where I should allow the user to change the training period or probation period. In which infotype should I store this data, so that I can include it in the corresponding

  • Flatten to XML error

    I'm having an odd error with the Flattent to XML function. I am using it to save a settings type definition for a data acquisition VI I made.  It works beautifully almost all the time until now.  I built a calibration routine that calculates the slop

  • Dropbox files causing Indesign, Word and Excel to crash

    If we try to open any file contained in our dropbox folder - the application instantly hangs and crashes. The is the same for applications like Word and Excel and also Indesign when 'placing' a file. You can open the files by clicking on them directl

  • How to display folder.jpg in iTunes ?

    I have a file called folder.jpg in each album directory which contains album art. How do I get iTunes to display this.. 1. in iTunes 2. on my Nano ? Thanks