Opening 1 jsp from another

Hi,
I am opening one jsp on click of a button of another.
Button's even code is here:
InputField txt = (InputField) this.getComponentByName("InputName");
     IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
     IPortalComponentResponse res = (IPortalComponentResponse) this.getResponse();
req.getComponentSession().putValue("openurl", "Yes");
Based on This value "Yes", another JSP is opened via this...
<%
try     {
     com.sapportals.portal.prt.component.IPortalComponentRequest componentRequest;
     String open = componentRequest.getComponentSession().getValue("openurl").toString();
     if(open.equals("Yes"))     {
%>
      <SCRIPT language="JavaScript">            
                EPCM.doNavigate("pcd:portal_content/Dev/EP1/testAPC");
      </SCRIPT>
<% }
catch(Exception ex)     { %>
<%= "Test" %>
<%
%>
But i am getting exception...
Can you plz guide me in this?
Regards,
Dev

Hi,
Can you specify the exception you get,
in any case the url used in EPCM.doNavigate() has the following format and your url specification is not right.
"ROLES://portal_content/folder1/role1/workset1/iView111"
In other words the pcd: is replaced with ROLES://
Please refer to the links below,
Navigation Target
http://help.sap.com/saphelp_nw04s/helpdata/en/18/3fb84033a8b533e10000000a155106/frameset.htm
For information on EPCM.doNavigate()
http://help.sap.com/saphelp_nw04s/helpdata/en/26/71c74030308431e10000000a1550b0/frameset.htm
Further more
<i><b>com.sapportals.portal.prt.component.IPortalComponentRequest componentRequest;
     String open = componentRequest.getComponentSession().getValue("openurl").toString();</b></i>
This part of the code is not usually done.
What you have done is actually put a bean in the component session of type java.lang.String
Use the following declaration,
<jsp:useBean id="openurl" scope="session" class="java.lang.String"
/>
Check up the link for the reference,
http://help.sap.com/saphelp_nw04s/helpdata/en/f9/1b0f4186b5d349e10000000a1550b0/frameset.htm
This declaration will done above all your form elements
In your page you can direcly use "openurl" as a variable.
For example
<%
if(openurl != null)
if(openurl.equals("yes"))
//Write some code
%>
Regards,
Harish
(Please award points for helpful answers)
Message was edited by: HARISH SUBRAMANIAN
Message was edited by: HARISH SUBRAMANIAN

Similar Messages

  • Error when opening swf from another swf

    Hi all,
    I'll try to explain this as good as possible.... I made a maze game that works perfectly when I run it by clicking on it's own .swf file, but when I try to access it from another .swf file which is a menu for the games I created, it does not work.
    I have absolutely no idea where to look for the error, so my question is: can it be that the main.swf (which is the menu for games) could be the problem, or the problem must be in the maze.swf?
    Thanx in advance!

    no, all code is in the first frame of actions layer:
    stop();
        var rightArrow:Boolean = false;   
        var leftArrow:Boolean = false;
        var upArrow:Boolean = false;
        var downArrow:Boolean = false;
        var speed:int = 5;
        stage.addEventListener(KeyboardEvent.KEY_DOWN, stage_onKeyDown);
        stage.addEventListener(KeyboardEvent.KEY_UP, stage_onKeyUp);
        stage.addEventListener(Event.ENTER_FRAME, stage_onEnterFrame);
        function stage_onKeyDown(event:KeyboardEvent):void {
            if(event.keyCode == Keyboard.RIGHT) rightArrow = true;
            if(event.keyCode == Keyboard.LEFT) leftArrow = true;
            if(event.keyCode == Keyboard.UP) upArrow = true;
            if(event.keyCode == Keyboard.DOWN) downArrow = true;
        function stage_onKeyUp(event:KeyboardEvent):void {
            if(event.keyCode == Keyboard.RIGHT) rightArrow = false;
            if(event.keyCode == Keyboard.LEFT) leftArrow = false;
            if(event.keyCode == Keyboard.UP) upArrow = false;
            if(event.keyCode == Keyboard.DOWN) downArrow = false;
        function stage_onEnterFrame(event:Event):void {
            var rect:Rectangle = player.getBounds(this);
            var i:int = 0;
            var xBump:int = 0;
            var yBump:int = 0;
            if(rightArrow) {
                xBump = speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(rect.right + i, player.y, true)) {
                        xBump = i - 1;
                        break;
            if(leftArrow) {
                xBump = -speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(rect.left - i, player.y, true)) {
                        xBump = -i + 1;
                        break;
            if(upArrow) {
                yBump = -speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(player.x, rect.top - i, true)) {
                        yBump = -i + 1;
                        break;
            if(downArrow) {
                yBump = speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(player.x, rect.bottom + i, true)) {
                        yBump = i - 1;
                        break;
            player.x += xBump;
            player.y += yBump;
            if(rightArrow) {
                xBump = speed;
                for(i = 0; i < speed; i++) {
                    if(cilj.hitTestPoint(rect.right + i, player.y, true)) {
                        xBump = i - 1;
                        nextScene();

  • Opening a jsp from another server(Weblogic) from webdynpro running on WAS

    hi,
      I have an application deployed on weblogic and want that when i click on a link in webdynpro it should open my jsp page in a new window and i should be able to send some values to it also.
      there is one way i know of, that is like this:-
    IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow("https://.../login?userid="userid"&pass="+pass,"header",false);
    newwindow.open();
    but in this case we are sending the parameters from URL like login id and password. I donot want to do that as the user can see this info on the browser. Is there any way in which i can send this user id and password to a jsp page/servlet without "url?..."
    thanks
    I mean i want it to act as a form submit or something like in servlets and jsp's

    Hi Venkat:
       There are couple of ways to achieve this:
    One of them are Pamita's approach, get details from her that how did she fixed the UserID\PassWd.
    The other best approach is use the AppIntegrator for the same, you can call any other web-applications into your own application. For AppIntg we create a system, where we can specify the UserID\PassWds too which is transparent to user.
    Hope this helps you.
    Thanks,
    Munna SAP.

  • How to open sys_refcursor from another sys_refcursor

    Hi all,
    I am having scenario like this. There are two stored procedures, both are with OUT parameter as sys_refcursor and some other input
    parameters. How to return the results of procedure 2 from first procedure.
    Create or replace procedure parent ( empno number, ename varchar2, x sys_refcursor)
    is
    y sys_refcursor ;
    begin
    --here i am doing some bussiness logic and getting values for parameters to the second stored procedure.
    child(col1, col2, col3, y);
    Now I want to sent the result set of y to parent SP
    open x for y; Its throwing error
    One solution i thought of is, converting parent SP into function and return the y result set.
    Is this option is correct, please share your solutions if you found any for this.
    end;
    Thanks in advance.
    Thanks,
    Pal

    user546710 wrote:
    I am having scenario like this. There are two stored procedures, both are with OUT parameter as sys_refcursor and some other input
    parameters.What are your reasons for using ref cursors in PL/SQL? Consuming ref cursors in PL/SQL is an exception. Ref cursors are intended to be used by external clients. Not PL/SQL. So why exactly are you using ref cursors?
    One solution i thought of is, converting parent SP into function and return the y result set.Cursors are not result sets. Caching the output of a cursor in PL/SQL as a result set (collection), is not a good idea - it fails to scale as very expensive memory is used for caching, instead of the much better and superior db buffer cache.
    Opening a cursor loop inside another cursor loop, is also not a good idea. This is a nested loop join. Manually coding joins inside PL/SQL (or Java/whatever) is a horrible idea. The SQL engine is designed to do joins. It does it better. It does it faster. It does it more intelligently. It does it with a wider arsenal of join algorithms than just the simplistic (and non-scalable) nested loop join approach.
    So you need to explain more clearly as to what the actual processing requirements are - and why you want to stick PL/SQL code in between the output of one SQL cursor and the input to another SQL cursor.

  • How to call a method in one JSP from another JSP?

    say that I have 2 JSPs.
    JSP one has a button.
    JSP two has some method that, say, find the square root of the number passed from JPS one.
    How to - when click - the button on page one call the method on page two?
    Please note that I can not use object binding, but I want passing the actual parameter and call the method on page two.
    Please note that this is an update of a previous post on the same topic called "Object scope".
    Thank you all very much.

    No, i dont know how to call other than main methods from other classes
    And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch).........

  • IOS/Android client - Open document from another app

    Hi,
    Is it possible to call the SAP Mobile Documents client for Android and/or iOS directly opening some specific document?
    I would like to know if I can integrate Agentry Work Manager with Mobile Documents, so the goal is to have some kind of link for each Work Order document in the Agentry client, and when user taps on it, open the related document already synched and stored in the Mobile Documents client (it should work offline).
    Is this possible?
    Regards,
    - Marçal

    Hi,
    SAP Mobile Documents can connect to many backends (CMIS compliants ones, ABAP backend etc..)
    Each documents in the backend through SAP Mobile Documents can be accessed by unique URL.
    These URLs are described here: URLs for App-to-App Integration of SAP Mobile Documents - SAP Mobile Documents - SAP Library
    You have to simply fire these URL from your app and SAP Mobile Documents Mobile Apps will highlight or open it for your based on your type of URL.
    Regards,
    Ashwani Kr Sharma

  • Invoking a JSP from another JSP

    I have two JSP and both are calling different servlets. How can I call JSP B from JSP A (perhaps using a button). and how can I pass one field value from JSP B to JSP A when JSP B closes or terminate.

    Here is what I'm doing that invokes the second JSP - B
    <SCRIPT>
    function JumpToURL(url) {
              if (url != '') {
              window.location = url;
    </SCRIPT>
    <TD><INPUT type="button" name="configBtn" value="Configuration" onclick="JumpToURL('options.jsp');"><a href="/WebAppName/jsp/options.jsp"></a></TD>
    The one problem that I'm facing right now is this:
    When I start the app or JSP A (JSP that contains the code above), if the FIRST thing that I do is to click on the button above, the app call the second JSP - B, with no problem. But if start the app and click on something else that goes out to the servlet (of JSP A) and then, click on the button above I get the message: "THe pahe cannot be found" or HTTP 404 - File not found Internet Explorer.
    Can you help on this please.........Thanks..

  • How to call jsp from another jsp

    Hi, All,
    I have several jsp files in my pagelet. I need to put a link in one jsp file. When client click the link, it will show another jsp file. Could anybody tell me how to do that?  i have tried to use following code in page1.jsp,
    IPortalComponentURI componentURI= componentRequest.createPortalComponentURI();
    componentURI.setContextName("pagelet/page2.jsp");
    String docuri = componentURI.toString();
    <body>
    click  '<a href="<%=docuri %> ">here</a>' to link to pages.
    But it does not work. Any help will be great appreciated.
    Marea
    Message was edited by:
            Marea Yang
    Message was edited by:
            Marea Yang

    HI Yang,
    You can achieve it through eventhandliling in jspdynpage.
    Go through this link ,
    i.<a href="http://help.sap.com/saphelp_nw70/helpdata/en/2e/d2a441cd47a209e10000000a155106/content.htm">eventhandling</a>.
    ii.<a href="https://forums.sdn.sap.com/thread.jspa?threadID=103335">method to call jsp</a>.
    iii.<a href="https://forums.sdn.sap.com/thread.jspa?threadID=393522">calling  resource JSP in Portal Compoent</a>
    Hope It'll help you.
    Regards ,
    Malini.V

  • Open ibook from another app, open ibook from another app

    I am preparing some presentation, so  i want to open an particular ibook in ibook app via another app on click event . Click event is such as <a href="path" ></a>.But i am not getting that particular ibook path. I can open ibook app using url Scheme i. e. "ibooks://", but how to pass parameter for paricular ibook.

    You might be better served posting this in the developers forum. https://discussions.apple.com/community/developer_forums

  • Opening Images from another converter in ACR

    I save the output from a RAW converter like DXO as a dng. It opens in ACR. What would I expect to see?

    Yes, I understand the difference, and I know DXO outputs a Linear DNG. I've known that for some time now.
    I also know that DXO "actually" applies the lens correction to the image. What do you think I have been concerned about over in the Lens correction Forum and here as well?
    I've known that for some time now and have made extensive tests on their output. I started well over a year ago, when lens corrections were only a gleam in Adobe's eye. This has been the thrust of my concerns; that no auto correction be applied in any part of the application w/o notification and the ability to say no. ACR is good in that aspect. In any event, the question posed here is about color correction, not lens. The DXO support person has covered these concerns quite well. He is an engineer, not a sales person. No, he is a physicist, with a PhD. who has explained their typical correction tests as each lens/body combination is characterized.
    The question here is based in trying to understand the entire process. Is the demosaicing done as part of their lens correction process? The answer appears to be: No.
    Is demosaicing done as part of the color correction? I would expect the answer to be yes, which posed the question, which I will state again:
    What would you expect to see if you open a color corrected RAW file saved as a DNG which ACR opens? I see three possibilities:
    1) The file in ACR looks like the file which DXO saved as a DNG  as shown in their viewer. ACR and DXO Look the same
    2)The file looks like the nef file, that is, the  DXO correction is stripped. ACR and DXO look different
    3) The file looks weird! DXO looks ok, ACR ???
    What would you expect to see? Forget lens corrections.
    FYI, Jeff, I am a long time engineer, starting my professional life in 1958 at Argonne National Labs working on Linac instrumentation.. I became a full time Photo Pro in 1974, and in 1998, returned to engineering as a contractor and consultant. My major career work was with Tektronix, which included test and evaluation of lenses for oscilloscope cameras. If I don't understand, I ask. Which brings me to a question from your post: What do you mean by "colors backed in"? I can make a SWAG, but I would rather not.

  • ODD new issue opening files from another network machine

    okay, my setup is kind of convaluted, but this is what I have: I made the switch to Mac last year, and do all of my processing on my Macbook Pro. It has CS5 on it.
    Because I havent been able to print properly from it (an alleged driver issue, wherein my images print with a 1/4" offset), I still print from a networked Windows Vista machine in the office--and because I hated the print dialogs in CS3 & CS4, I actually still print from PS CS2
    (I know, probably seems senseless, but it works best for me). Life has been peachy.
    Now for the issue:
    Suddenly, as of today, PS on the Windows machine wont open any jpg or psd on the Mac. If I copy/move it to the Windows desktop, it opens just fine. I either get a message saying it's "the wrong type of file," or--more bizarre, when I double click a file to open, I actually get the dialog box you get when you hit ctrl-N for a new document... and this happens the same in CS2, 3, & 4. Any clue as to what the heck I've got going on?
    thanks!

    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Unable to open 10g Database Control Webpage from another computer

    Unable to open 10g Database Control Webpage from another computer
    Hi Gurus
    I have just installed Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on my PC Windows XP , created database and configured DB control
    I can open Database Control Webpage on the database machine by typing
    http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    or
    http://136.18.70.189:1158/em
    But can not open it from another PC
    When I do following from another PC
    1. http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    Get error: [code=DNS_NO_DATA] The IP address was not found during the DNS lookup. Contact your system administrator.
    2. http://136.18.70.189:1158/em
    Get error:Can not display web page
    I can ping 136.18.70.189 but not USI2374993VND0.vlgdw2k.visteon.com
    On the other PC I also tried adding 136.18.70.189 to
    tools - internet options - security - local internet - sites - advanced - add this web
    site to the zone as http://136.18.70.189
    But it did not work
    Please help with any ideas
    Thanks a bunch
    New DBA

    Firewalls?
    DNS translation issues?

  • Different messages on COMMIT_FORM ,when form is opened from another form

    hi,
    problem is when open form from another form. After change some data and execute COMMIT_FORM, message is : No changes to apply.
    Interesting is that when exit and open form again, changes is SAVED !?.
    If open that form directly, message is that like should be ( Transaction completed...).
    Has anyone idea where is problem?

    Hello,
    While calling the form try with 'DO_REPLACE' option.
    Thank U.

  • How to open the 10g Database Control Webpage from another computer ?

    it is a freshly installed Oracle 10gR2 EE on windows xp professional.. all settings are default by installer.
    i can open the Database Control Webpage on the database machine by typing http://localhost:1158/em in IE.
    however when i try to open it from another pc on the same LAN by using http://database_pc_ip_address:1158/em in IE, it says the page can not be found.
    what else need to be done before i can open the Database Control Webpage from another PC?
    thanks for the help !

    You have a configuration problem on your database machine, LOCALHOST is resolved to the internal loopback address 127.0.0.1, not to the actual IP-Address of the machine. Such a configuration works only locally, for remote access you have to specify a hostname known to the network. Check the installation guide for the correct setup (machines connected to a network or not, DHCP or not):
    http://download-uk.oracle.com/docs/cd/B19306_01/install.102/b14316/reqs.htm#BABBDGBI
    Werner

  • Open iWeb on another mac using Dropbox or a flash drive?

    I am having a hard time transfering the iWeb file that I created from one mac to another.  I have it saved in Dropbox and have tried to open it from another mac through Dropbox and initailly it wouldn't open it at all.  Then I tried the iWeb Switch Domain and now iWeb will open an extremely out dated version of my site.  And I only have 1 site file.  I have tried transfering it to a flash drive and I get the same result.  Any ideas?
    Thanks in advance for the help!
    C

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    Use the app below to open the domain file in your dropbox folder on each mac:
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.

Maybe you are looking for

  • Save for web, Mac to PC

    Is this a CS3 problem? When I save a jpeg and send it via mail to a PC, the file can't be opened in the standard viewer (this is at my work). So I need to got through "save for web" and then the file can be viewed. But if I want to send a big picture

  • Original iPhone does not appear in iTunes

    My wife cracked her 3Gs, so while we wait for our new 4Gs to come, I thought I would crank up my original 1st gen for her tto use for a couple weeks. I did a total restore and now when I plug it into iTunes, it will show as a device but nothing appea

  • Spacebar will not move marquee selection

    I just downloaded the CC trial for photoshop, then started using the elliptical marquee tool but when I try to use the spacebar to move the selection the selection will only move a few pixels then wont move at all. Any ideas? Also i have the screen f

  • Reconcilation- single RO and multiple ITresource- lookup group recon

    I added ITresource as key, usecase: for server1 i have some groups(ITresource1)--> i want run lookup recon for the server1 and ITresource1 to get server 1 groups for server2 i have some groups(ITresource2)--> i want run lookup recon forthe serve2 and

  • HDD has noise like "DADADA"

    sometimes MAC mini has noise and sounds like da da da. HDD gets trouble?