Want to open jsp in a new window

Hi,
I'm using JSPDyanPage. I've a search iview. In search.jsp if the user clicks on "Search button" then
after firing database qry in the Java file, the control
comes back to search.jsp. And onload of this jsp I want
open result.jsp in a new window.
Any idea how to implement this. Will the bean be available in the new popup window. In search.jsp I tried to open result.jsp by writing javascript
window.open("result.jsp");
But its giving me error: iView not found: result.jsp
Any help will be highly appreciated.
Thanks,
Dhiman

Hi Dhiman,
the most simple thing would be to react on client side within search.jsp (not directly on server side) on the "Search" button. The client side should call some JS, which reads the search term from the input field and calls your component within a new window (by window.open("</irj/.../portalappname.portalcomponentname>"> or by EPCM.doNavigate, this would be calling the iView instead of directly calling the component implementation, with parameters to open the destination in a new window.
You would pass the search string as url parameter, so no bean problems here. After calling this JS, you would stop the server roundtrip for search.jsp.
See http://help.sap.com/saphelp_nw04/helpdata/en/26/71c74030308431e10000000a1550b0/frameset.htm for EPCF.
See http://help.sap.com/saphelp_nw04/helpdata/en/43/067941a51a1a09e10000000a155106/frameset.htm for JS API for HTMLB elements.
See http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/button_dev.html for htmlb button details and how to stop the server roundtrip.
Hope it helps
Detlev
PS: Please consider rewarding points on SDN for helpful answers. Thanks in advance!

Similar Messages

  • Whenever I want to open Firefox or a new window in Firefox, the following error message appears: [JavaScript Application] Exc in ev handl: TypeError: this.oRoot.enable is not a function. How can I solve this?

    A little window with the error message pops up each time I wnat to open Firefox or if Firefox wants to open a window. I have to click the OK button and then Firefox opens. This is annoying.

    That problem is caused by McAfee Site Advisor
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • To open a pdf document or word document from a JSP into a new window

    Hi,
    How to open a PDF document or word document from a JSP into a new window. i.e say from a jsp when a hyperlink or button is clicked it should open a new window with the pdf document or word document in it.
    thanks in advance,
    radki_j

    Hi ,
    when i tried to use the below code to open my word document , it will open as html and with some garbage details. Doesnt open as word document. How to solve this kind of probem?Need advice urgently.
    Open Document

  • 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

  • How can I put OSX 10.7 on a new Macbook Air. Maverick no longer allows "open file in a new window" and I really miss it. At the Apple Store they told me it can't be added to the new OSX 10.10 so I  want to change the OSX on the new Macbook Air and it

    I have been using a 2012 Mac pro to do HD video editing. I bought a new portable Macbook Air only to find that Maverick no longer has "open files in a new window" which I use all the time in the very large folders of video clips and royalty-free music. I asked at the Apple Store how I could get this back on the Macbook Air and they said it couldn't be done so I thought I would re-format the HD and install 10.7 on it and was notified by the Macbook Air I can't put 10.7 on that computer. Apple use to give this as an option but now they have gone more to the attitude of "Do it our way or go to ****!" In anger I went out and bought a Dell Laptop and Pinnacle Studio 17 which I have been learning to use. I have been an Apple/Mac user since 1979 and would still rather do my video editing on a Mac. Is there any way that I can force the Macbook Air to let me load in OSX 10.7 where there is still the option to  "open files in a new window" or is there a way to add this to Maverick? The experts at the Madison, WI Couldn't give me any help on this.

    Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
    (117195)

  • Problem opening excel file in new window

    Hi,
    I have a JSF application that sends an Excel file back to the user.
    My backing bean has a method that uses POI to generate the excel file and then write it to the servlet response.
    This works fine if I call the method from a command button, but this displays the file in the current browser window, whereas I want to open the file in a new window.
    I added an onclick javascript call to a command button which does a window.open() to open a jsp in a new window. The jsp contains an empty view, as I'm using an on-load phase listener to make the call to my backing bean method which should send the excel file when the file opens.
    However, when the window opens, I get an IE error message saying 'Could not open xxx.faces', and then an excel error message saying 'Could not open xxx.xls. This may be because the file does not exist, or the file is already open etc etc'
    However, I found that if the popup window goes through a servlet (which just forwards to the jsp page) instead of going to the jsp directly, it works like a charm.
    Any ideas or suggestions on how to fix this would be very much appreciated. If I can't fix it I'll just stick with the servlet approach, although it just seems a bit messy.
    (I'm using IE6 SP2, tomcat 5.5 btw)
    Cheers,
    Stuart

    I'm doing a similar thing, but I use commandLink to lauch the window. CommandLink has the "target" attribute that I set to _blank.  As you would expect, that opens up the page in the new window.                                                                                                                                                                                                                                                                                                                                                                                                       

  • Open Sub Report in New Window

    Hi,
    We have an application which is integrated with crystal reports.
    So when you open a report from the application it opens up in a new window. (Ours is a web based application and crystal reports opens up in IE browser)
    We have some reports which have subreports (on demand ), is there any crystal report configuration through which these subreports can be opened in a new window, as of now they open in the same main report window.
    Thanks in advance

    hello,
    you may wish to look into saving the subreport as a separate report and then:
    1) calling the report via opendocument (if your app sits on top of businessobjects enterprise or crystal reports server)
    2) calling the report via URL reporting if your app does not utilize the above platforms
    i can't guarantee the above will work as it may depend on your environment that you are hosting the reports in.
    see the help guide [here |http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]for more information on linking
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    as per using a subreport and opening in a new window, this doesn't really work.
    if you want though, you can use a Report Part link to go from the open subreport back to the main report. please see more on Report Part linking in your crystal report's online help.
    jw

  • How do I make Firefox not open the homepage in new windows?

    Hi. I have a collection of 4 pages set to open every time I start Firefox. Whenever I need to open a new window, my 4 pages open again.
    I would like to have those 4 pages open only the first time I start the browser, because I never close them. Obviously I don't need them open again.
    How can I set it so that these 4 pages open the first time I start my browser, but only have a blank page open the next time I select "open new window."
    Even more ideal would be to have the choice to open my homepages or a blank page (in case for some reason they do get closed).
    Any solution that takes more than one extra step is one extra step too many. Otherwise, I'd simply just x out of three of my pages and change the URL of the 4th.
    I'm not entirely technically minded, so if yours is a technical solution, I thank you in advance for clearly laying out the steps one-by one.
    Cheers.

    One possibility would be to change how you open a new window. You can create a bookmark for Firefox's '''about:blank''' page and then, to open it in a new window, shift+click the bookmark.
    (To create it, right-click the Bookmarks Toolbar or Bookmarks Menu near where you want to add it and choose New Bookmark. Enter about:blank in the Location and any description you like in the Name, then click Add Bookmark.)
    But that might be difficult to remember or inconvenient, so the next thought would be to bookmark your 4 home pages as a group in a single folder on your Bookmarks Toolbar or Bookmarks Menu, as you prefer. If you ''middle-click'' that folder with the mouse scroll wheel, Firefox will open all of its pages in separate tabs in the same window. Does that still count as 1 step?
    (To create it, open a new window with your four tabs. Right-click any of the tabs and choose Bookmark All Tabs. This will create the new folder. Assuming it tests out, you can then change your Firefox home page to about:blank to display a blank page.)
    Are we getting closer?

  • When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work

    When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work. I did not have the problem until I started using firefox 4.

    It is probably a JavaScript link.
    You can probably force it where you want it with a keyboard shortcut
    either "Ctrl+click" or "Ctrl+Shift+click". see
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    ''Did that work?''
    Some styles that provide a warning as to the type of link:
    * No Follow links, mouseover id of other links - userstyles.org<br>http://userstyles.org/styles/10987
    * Change cursor on some links with JS. - userstyles.org<br>http://userstyles.org/styles/233
    * Link Warning - Themes and Skins for Mozilla - userstyles.org<br>http://userstyles.org/styles/1301
    * Link warning (cursor hover) - various filetypes - userstyles.org<br>http://userstyles.org/styles/2538
    * Red hand cursor for .pdf links - userstyles.org<br>http://userstyles.org/styles/553

  • Today I think firefox automatically installed a new version and after that it said my adobe flash was old so I had to update that. Now I can't open links in a new window.

    Today I think firefox automatically installed a new version and after that it said my adobe flash was old so I had to update that. Now I can't open links in a new window.

    Firefox doesn't install new versions of plugins, but Flash may update itself automatically.<br />
    You are still one version behind on Flash, current is Flash 10.1 r85<br />
    If the Flash player didn't update properly then you need to download the full version and run the installer as Administrator (right-click: Run as ...)
    Flash Global Notifications Settings Panel:<br />
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.html
    You are more versions behind on Java updates with having Java 6 U11, current is 6 U22.
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Link to open pdf file in new window

    I want to create a link on a web page to open a pdf file in a
    new window. I used the "on click" "open brower window". Which does
    open the pdf file, but not in a new window. How do I open it in a
    new window?

    Your code is a mess:
    ** there is no apparent reason for the span:
    <td><span class="style1"
    onfocus="MM_openBrWindow('pdf/PR_launch.pdf','','')">Milford, OH
    So change that line to:
    <td>Milford, OH
    ** here you have two double quotes before This.
    <a title="”This" class="pdfFile"
    onclick="MM_openBrWindow('pdf/PR_Launch.pdf','','')"
    Change it to this, (with some other improvements):
    <a title="This" class="pdfFile"
    onclick="MM_openBrWindow(this.href,'','');return false"
    ** This is code salad:
    href="”PR_Launch.pdf”" link="" will="" open="" a=""
    .pdf=""
    file.”="">More (PR_Launch.pdf,
    230kb)</a></span></td>
    Change it to:
    href="pdf/PR_Launch.pdf">More (PR_Launch.pdf,
    230kb)</a></td>
    If you continue to have trouble, you might find my divaPOP
    Extension
    easier, and far more powerful. It automat6ically opens pdf
    files and
    links to all external files in a popup window without your
    needing to
    code each link:
    http://www.divahtml.com/products/divaPOP/open_popup_windows.php
    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

  • How to open "Dispform.aspx" in new window or tab in SharePoint List item click.

    Hi,
    I have a SharePoint list.It has column name "Description" which is "Multiple lines of Text" and "<label for="onetidAppendOnly">Append Changes to Existing Text" is Yes.</label>
    Now the view showing the Description <label for="onetidAppendOnly"></label>column value as a "View Entries...". while click the view entries. It showing the records in same window. But
    instead of that i want to open the record in New tab / New window as Popup.
    Is it possible?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    The view itself is a Web Part called an XSLT List View Web Part (XLV for short). This Web Part is stored on an ASPX page that is by default associated with a list or library on your site.
    I suggest you can check if the view page is valid, also, you can try to create another view, then redirect to the view page to see if there is xslt in the page.
    Here are some detailed articels for your reference:
    Create a custom list view using SharePoint Designer
    Using SharePoint Designer 2010 to Work with Web Parts
    How to: Customize the Rendering of a Field on a List View
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Link to a frame opens up in a new window

    I'm making a website with two frames: the top one contains the menu and the bottom one shows the content. I read the description in the help page, that as target you should write the name of the frame you want the link to open up in. I did that but it opens up in a new window anyway. Why is this?
    The name of the frameset is called "index" and the top frame is called "menyrad". The start page and the bottom frame are the same thing, it's called "start". Should these be two separate things instead? But then wouldn't the bottom frame be empty when one goes to the page for the first time? Anyway, I have made only one other page so far, it's called "hyr_personal". In the links that are on the top frame, I have written "start.html" or "hyr_personal.html" as the link and "start.html" as the target. This is all the code I have so far:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Jourbemanning</title>
    </head>
    <body background="moln.png">
    <a href="start.html" accesskey="S" target="start.html">Start</a>
    <a href="hyr_personal.html" accesskey="H" target="start.html">Hyr personal</a>
    </body>
    </html>
    If there's anything else you need to know, just tell me. I haven't published the page yet. I saw that someone else had a thread about the same subject, but their code didn't look even remotely the same.

    Hi Zefyrinus,
    from the point I understood correctly, that what I see is the relating to the appearance like described here:
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7d2da.h tml
    In the Target menu in the Property inspector, select the frame or window in which the linked document should appear:
    _blank opens the linked document in a new browser window, leaving the current window untouched.
    _parent opens the linked document in the parent frameset of the frame the link appears in, replacing the entire frameset.
    _self opens the link in the current frame, replacing the content in that frame.
    _top opens the linked document in the current browser window, replacing all frames.
    Frame names also appear in this menu. Select a named frame to open the linked document in that frame.
    That means not a file is a target:
    <a href="start.html" accesskey="S" target="start.html">Start</a>
    <a href="hyr_personal.html" accesskey="H" target="start.html">Hyr personal</a>
    but rather the appearance, what means for example:
    <a href="start.html" accesskey="S" target="_blank">Start</a>
    <a href="hyr_personal.html" accesskey="H" target="_blank">Hyr personal</a>
    Hans-G.

  • Open Bookmark in a new window

    Hi,
    I am creating a webtemplate, in which i want to save bookmark by opening it in a new window.
    can someone help me with the code for this.
    Thanks

    coud you please share your solution - i'm looking the same issue
    thx
    Roger

  • I would like to open links in a new window but cannot find where to put the setting. Have unchecked the "Open new windows in new tab instead" box in the Options dialog box.

    When I click a link on a webpage or other software, I would like for it to open in a completely new window.

    You can hold the Shift key and click the left mouse button a link to open that link in a new window.
    The setting in Tools > Options > Tabs is only for links that specify a target window and you can divert such a link to a new tab instead.

Maybe you are looking for

  • How do I add photos to my photo stream?

    Have an iPad 2 with lots of pictures on it.  How do I get these all to add to my PhotoStream?  Thought they should do this automatically, but it seems only pics taken with the iPad camera add to the photostream. Cheers

  • XML data storage - How to handle symbol ' inside xml data from java code

    Hi I'm trying to store XML data in Oracle XML DB 10gR2 both through SQL and JAVA . I have a simple test table called xmltable with a primary key and a XMLType column My sql is: insert into xmltable values ('020', sys.XMLType.CreateXML( '<?xml version

  • OS Mavericks won't Install on Mac Mini

    Computer was purchased end of 2009/2010 and meets minimium Hardware Specs. Currently have MAC OS X 10.6.8 installed (Completely Updated) Processor Speed 1.83 Intel Core 2 Duo Memory is 4GB Open/Free HD Space available +40GB (80 GB Total) Any thoughts

  • Volume structure

    Hi. I'm new to the mac world. I just got my 1.83ghz 1gb ram white macbook today and i'm very happy with it apart from one thing. It came with a cd that has a program called Techtool delux on it. I let it run and it said that i have a problem with the

  • How to use external table - creating NFS mount -the details involved

    Hi, We are using Oracle 10.2.0.3 on Solaris 10. I want to use external tables to load huge csv data into the database. This concept was tested and also found to be working fine. But my doubt that : since ours is a J2EE application, the csv files have