Receive a parameter in the URL in adf application

Hello,
using the sendRedirect to direct control to another adf application, as:
((HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse()).sendRedirect("some url");assuming that I am pushing parameters to the url, how can I read them in called application !!
to make the post clearer, assume that I have two adf applications A and B,
A will redirect the user to B using the sendRedirect method,
where shall I receive the request to get the parameters or attributes added to the URL !!!
hopefully I have made the post clearer so that you can help !!
appreciated, thanks in advance.
rgrds,

For passing parameters to another ADF application, we could use as a parameter as part of the request parameter of the URL as mentioned in
http://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl
For reading the parameters in the another application (assuming CurrentDepartmentName is the parameter) ,
HttpServletRequest request =
*(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();*
String strvalue = request.getParameter("CurrentDepartmentName");
Thanks,
Navaneeth

Similar Messages

  • Why do I get this error when specifying a parameter from the URL?

    Hello,
    I am trying to "install" a parameter in a page, so that it's value can be specified in the URL and a VO updated according to this value.
    Here's is the page definition file, with an executable and a binding to a method call:
    <executables>
    <invokeAction Binds="prepareMainMenuView1" id="invokeQuery"
    Refresh="prepareModel"/>
    </executables>
    <methodAction id="prepareMainMenuView1"
    InstanceName="AppModuleDataControl.dataProvider"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="prepareMainMenuView1"
    IsViewObjectMethod="true">
    <NamedData NDName="param" NDValue="#{param.root_menu}"
    NDType="java.lang.String"/>
    </methodAction>
    if I run the MyMenu application with:
    http://127.0.0.1:7101/MyMenu-ViewController-context-root/faces/menu?root_menu=anything
    then I get this exception:
    ADF: Adding the following JSF error message: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Do you know why? Where do I fail?
    I followed the isntruction here:
    http://www.jasonsdevelopercorner.com/?p=65
    So far I have not been able to read a parameter in a way, do you have any example on how can I use parameters from URL from within a single page in an unbounded task flow?
    I worked all the day on this, but with no luck.
    Thanks

    I solved the problem. The invoked method was not part of the VO, but was part of the AM.

  • Can the parameter in the url be invisible?

    hi,
    I want the parameters in the url to be invisible. That is if the url is
    http://localhost:8080/index.jsp?create=12 , so in the url bar it has to be displayed like
    http://localhost:8080/index.jsp. But the parameters should not be displayed. Is it possible?
    If possible how? Can you send the code?
    Thanks in anticipation
    Deepa Datar

    Greetings,
    if the username & password is right the user has to be
    redirected to the index.jsp page, where the usernameHow are you "redirecting", with sendRedirect? This method adds an HTTP 'Location' header to the response which instructs the browser to "fetch the response" from the given URL (including parameters, if any). Unfortunately, the browser uses a GET request on the next resource so, "no", its not possible to make the (GET) parameter(s) invisible - this is a limitation of the HTTP protocol. However, it seems what you really want in this case is not to "redirect" but to "dispatch" the request. Request dispatching allows your servlet to forward the request to, and/or include responses from, another resource on the same server without the overhead of redirecting the client. Additionally, the original request and response objects are maintained which can be modified with additional ("invisible") attributes:
    // In service thread...
    request.setAttribute( "client", "12" );
    RequestDispatcher rd = request.getRequestDispatcher( "index.jsp" );
    rd.forward( request, response );I hope this helps.
    Can any one help me out? Its actually urgent.
    Thanks in anticipation
    Deepa DatarRegards,
    Tony "Vee Schade" Cook

  • How to handle oas parameter in the URL

    Hi,
    I am very curious about the oas parameter in the next URL how to form the value:
    OA_HTML/OA.jsp?_rc=<..._LAYOUT>&_ri=275&addBreadCrumb=RS&<...Id>=<param_value>&_ti=2094430068&oapc=3&oas=l305LKdSwzg9iJqy8q00ew..
    If I use String createURL() or setForwardURL() then I can make some value for oas parameter. My issue is that the by these methods made values are not correct I would like to manage this value by myself. How can I manage this value, put, set, get anywhere?
    Thanks in advance,
    Cafer

    Hey,
    Thank you all for your replies. Actually i forgot to say something to you professionals,
    In my Pc, already, i have Oracle Web server which listens to 80, thats why for tomcat itlself i set 8084
    as port number at the time of installation, since giving 80 failed to run. Without keeping this in mind, i blindly
    changed the port 8084 into 80 in server.xml file, stopped and while starting i get " *The port 80 is already in use*"
    Is there any way to skip this 8084?
    i use tomcat 6, Waiting for your suggession!
    Thanks ,
    SRI.

  • How to pass and fetch multiple parameter in the URL of the Web Dynpro

    Please help me to fetch parameter in runtime from the URL in web dynpro allication. Like
    MyApplication?SAPtestId=Arun?SAPtestId=Kumar?Test2=Jaiswal;
    I want to fetch the value of the SAPtestId, Test1 and Test2 in the web Dynpro Application.
    Please help me on this asap. thanks

    Hi Arun,
    Passing parameter to a wen dynpro application is done throught default inbound plug, which exist in interface viewcontroller
    and you can access those parameter in implementaion of default inbound plug
    To pass parameter
    If MainWin is your main window of application then
    1.in MainWininterfaceview controller add parameters in default inbound plug.
    To access these parameter
    1. In implementaion of MainWininterface view right a code to access these parameter
    2.Store these parameters  in controller context, so you will be access it from any screen
    as
    public void onPlugDefault(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String SAPtestId )
        //@@begin onPlugDefault(ServerEvent)
    set  your controler context with SAPtestId
    //@@end

  • Reading a parameter from the URL

    Hi,
    There is a custom OA page that I launch from another isupplier form. The custom OA page is supposed to query only details of the purchase order. I have taken the following approach but am unable to capture the parameter.
    on the source form, i have personalized the po number column to include an URL with OA.jsp?page=/../../../TestPG&PoHeaderId={@ICX_HEADER_ID}
    in the custom page, I write a code
    //PoHdrId = "2346";
    String PoHdrId = pageContext.getParameter("PoHeaderId")
    I cannot read the parameter and i am hard coding this to make my custom page query for a particular PO number.
    Appreciate a quick response.
    Regards,
    Jagan

    Hi Ram:
    I have the similar problem.
    I added a new Button thru' Personalization to the View Purchase Orders Page of iSupplier module.
    In the destination URI of the newly created button I gave,
    javascript:var print_window = window.open("http://server:port/OA_HTML/myJSPPage.jsp?PoNum={@PoNum}")
    Before cliccking the button when I checked the properties of the link, it is not well formed. (i.e The Parameter {@PoNum} is shown as it is. The value is not substituted.)
    When I Click the new button it is calling the custom jsp page, but not passing the PoNum parameter value instead it passes {@PoNum} string.
    Please help me ASAP.
    Thanks,
    San

  • Identify the end url of ADF application in Weblogic console

    Hi All,
    Is there a way to identify the end url of an ADF application deployed in the Weblogic server (v10.3.6) from the Weblogic console screen?
    Request you to please share the steps.
    Best Regards,
    Ankit Gupta

    No, the only thing you can do is to setup a welcome file in your web.xml. This file or files then cna be accessed through the testing tab of an application from the admin console.
    Timo

  • Get the parameter from the URL

    Hello
    I have a problem. I want to know the id that is in the url of an extern site. For example http://www.example.com/employer.jsp?id=1234
    Does anybody know how I can get the value 1234 fom the url. I have no idea but it is very important for me.
    Please help me,
    Henk

    oic. If the document location according to the browser is that URL with the id or whatever, then you could use Javascript to set the value of a hidden form field:
    <body ... onload="document.forms['myform'].submit();">
    <form name="myform" ... onsubmit="this.url.value=document.location.href; return true;">
    <input type="hidden" name="url" />
    Of course, that'll submit the form on load, you can change that part if you want.
    If the page is in a frameset and you want the top page's location, you can do:
    <form name="myform" ... onsubmit="this.url.value=top.document.location.href; return true;">
    But, the browser is going to have the location of whatever page it thinks it's viewing, and if it got there by a redirect, it'll show the page it is on, not the page it was redirected from. For forwarding, it'll still think it is on the page that did the forwarding, not the end page. In other words, whatever you see in the brower's location bar should be what you'll get.

  • Passing parameter to the URL in UWL

    Hi ,
      We are sending the workitem from ECC to UWL and all these works fine.
    We have a custom form that opens from the UWL workitem on the click of a button 'Launch URL'  . We need to pass a name into the cutom form while it opens.
    We are using the Task visualization in the SWFVISU.
                                 Visualization type  = Portal page
                                  DYNPARAM          = zname=${item.externalld}.
    But the URL opens with a null value. Kindly help.
    - Liz

    Hi,
    please check the following OSS notes;
    <a href="https://service.sap.com/sap/support/notes/1015257">Note 1015257 - Need to enter escape characters for direct input in Variable</a>
    <a href="https://service.sap.com/sap/support/notes/1062214">Note 1062214 - Errors with direct input in web variable screen</a>
    hope this helps...
    Olivier.

  • Passing parameters through URL in ADF Application with UIShell

    Hi,
    JDeveloper Studio Edition Version 11.1.1.6.0
    The UI in our application is developed with UIShell pageTemplate.
    We have a Home page created with PageTemplace "UIShell.jspx" and this page is placed as a view in adfc-config.xml (the Unbounded Task Flow).
    The other pages for our application are created using Page Fragments and these pages are called from Home_taskmenu.xml through Bounded task flows.
    With this setting, the URL(after SignIn) will look like,
    http://localhost:7101/OperationalPlanning/faces/Home?_afrWindowMode=0&_adf.no-new-window-redirect=true&_afrLoop=6811862222491857&_adf.ctrl-state=29wus7giw_19
    We have a requirement to build the URL which should open a Page Fragment directly after Signing In to the application. And we have a id to be passed as a parameter, so it should open the page fragment with the details based on the id value that we pass.
    The parameters are already registered in the Bounded Task Flow(which has the page fragment) and I could open in the "localArea" using a link in the Home Page.
    Now, I want to directly launch the Bounded task flow by passing a parameter, so that it opens the Page Fragment as a tab once we signIn.
    Let me know if there is any solution for this requirement.
    If there is any document to follow for this kind of requirement in an application which is created using the UIShell, please let me know.
    Thanks,
    Tamil

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

  • How to Decode the urls in web application

    Hi all,
    I am encoded the url in jsp by using the URLEncoder.encode()
    method like <% String msg=URLEncoder.encode("string");How can i decode this one without using URLDecoder.decode().
    My Actual Requirement is if i encoded any url which is present in any form like <html:form action="url">.actually this url is mapped in struts-config file. In the address bar how can i get the encoded url.If any body gives the solution highly appriciated.
    koti
    Message was edited by:
    [email protected]

    From the workflow when you create the link, also add the proposal number as an url parameter.
    For example if the url for requesting WD application is <WD_URL>, then URL with parameter would be
    <WD_URL>?PROPOSAL_NO=<actual_proposal_number>
    In the webdynpro, you can access this parameter with the following piece of code(ideally in wdDoInit of component controller).
    String proposalNo = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PROPOSAL_NO");
    Regards
    kk..

  • Error in the URL of WedDynpro application while debugging

    Hi Experts ,
    I am still facing an error while deploying my WebDynpro application for debugging.
    The URL is created as :
    http://<host>:50000/@@@DEBUG@@@7672950/webdynpro/dispatcher/local/WDtest/WDtest?SAPtestId=2
    now due to this improper URL the error being shown is
    404 Not Found
    SAP J2EE Engine/6.40
    The requested resource does not exist.
    Details: Go to main page of this application!
    Can you help me solve this?
    Thanks and regards,
    Ashish Shah

    Hi Ashish,
    This occurs because the Web Dispatcher does not support the external session ID (ESID) of the portal. As a result, the Web Dispatcher passes on requests that are intended for a certain HTTP session to another application server and not to the server where the session and the respective user context are located.
    For the support of ESIDs in Web Dispatcher, one of the following SAP Web Dispatcher versions is required:
    6.40 patch level 93
    7.00 patch level 26
    For higher releases, no particular patch level is required.
    However, at least one of the above-mentioned versions of the sapwebdisp(.exe) executable is required.We recommend that you additionally import the above-mentioned versions of the icmon(.exe) executable and the admin directory that are used for the monitoring the Web Dispatcher.
    The Web Dispatcher installation is described in the online help.
    In Releases 6.40 and 7.00, the following parameter has to be specified to activate the ESID support:
    wdisp/HTTP/esid_support=1
    In higher releases, ESID support is the default setting. If you do not require this, you can deactivate it by setting
    wdisp/HTTP/esid_support=0
    You can set the following parameters for advanced configuration of the ESID support. They are not usually required.
    wdisp/HTTP/max_esid_entries (default value 50000)
               Describes the maximum number of entries in the ESID table.
    wdisp/HTTP/max_logon_groups (default value 32)
               Describes the maximum number of logon groups that can be addressed by the Web Dispatcher.
    wdisp/HTTP/context_timeout (default value 3600)
               Describes the timeout for entries in the ESID table.
    The wdisp/HTTP/max_esid_entries and wdisp/HTTP/context_timeout parameters correspond exactly with the wdisp/HTTPS/max_client_ip_entries and wdisp/HTTPS/context_timeout parameters that are used for dispatching SSL end-to-end requests . When you set the parameters, refer to the documentation for the corresponding SSL parameter (see online help).
    Check this Sap Note : <a href="https://websmp201.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=0000866603&nlang=E">0000866603</a>
    Hope it will help you.
    Regards,
    Mithu

  • Is it possible to change the URL of an application?

    Hi All,
              I was working with the oracle apex and created few applications almost a year back, due to my higher studies there is a gap with the tool..and finally I am in.
    Am planning to create an application which will be similar like a personal website.My doubt here is ..whether it's possible to change the URL by keeping a simple one which includes my name also
    instead of having this big..
    http://apex.oracle.com/pls/apex/f?p=10221:1:116416608594529
    I can understand that the whole URL describes the appln no,page no and session ID but its my doubt possible or not..If possible then how to proceed?
    Thanks
    with Regards,
    Ramya.

    My doubt here is ..whether it's possible to change the URL by keeping a simple one which includes my name also
    instead of having this big..
    http://apex.oracle.com/pls/apex/f?p=10221:1:116416608594529
    I can understand that the whole URL describes the appln no,page no and session ID but its my doubt possible or not..If possible then how to proceed?
    If you are just looking for a nice and short URL to start your application, why not just use a URL shortener service like goo.gl ?
    Just put in your long URL and it will create a nice and short URL for you... for example, the above URL is now http://goo.gl/FijYxn
    - Morten
    http://ora-00001.blogspot.com

  • (Cont)Passing dynamic parameter with the URL while submitting the form

    Hi all,
    My question is based on this link --> http://forums.adobe.com/message/4942572#4942572
    May you kindly refer to the link above for reference.
    My question is suppose the client side have a html page with a url, when the user click on the link, how the adobe livecycle directly receive the link that clicked from the user? is it possible to do that? Please advise.
    Thanks a lot.

    please help....

  • Received an error. The URL contains the path 'drives', which isn't supported.

    I cannot make working request to live Api on windows 7
    i downloaded example from
    https://github.com/liveservices/LiveSDK-for-Windows/tree/master/src/Desktop
    program authenticates, but i can not make any working request.
    i try to copy requests from OneDrive API console, but it does not work.
    i get errors in URL all the time.what am i doing wrong?

    It sounds like you're using the path for the new OneDrive API for the LiveSDK.  The paths for the two are different.  You'll want to make sure that you're making calls to any of the friendly folders listed below (you can change USER_ID to
    "me" instead) or the folder id's returned in the JSON response.
    USER_ID/skydrive/camera_roll represents the OneDrive camera roll folder.
    USER_ID/skydrive/my_documents represents the Documents folder.
    USER_ID/skydrive/my_photos represents the Pictures folder.
    USER_ID/skydrive/public_documents represents the
    Public folder.

Maybe you are looking for