Put an URL parameter in a JavaBean attribut

Hello
I am new in JHeadstart and ADF/UIX
I need to get my URL parameter in an UIX view.
I want to put the value in a JavaBean before to show the view
My URL :
http://10.1.100.195:8989/IBA2-ViewController-context-root/StartAppModule.do?login=TOM
In a JSP or a Servlet my code will probably be
String myparm = request.getParameter("login");
DCBindingContainer bc = (DCBindingContainer) request.getAttribute( "bindings");
JUCtrlAttrsBinding ctrlBindinglogin =(JUCtrlAttrsBinding)bc.findCtrlBinding("data.Bean1testUIModel.userlogin ");
ctrlBindinglogin.setAttribute("userlogin ", myparm);
How to put this in an UIX Form before to show the view ?
Is it the better choice to do that ?
Could you help me please ?

Why can't I find anything in the java docs about the JSObject class and a listing of its methods?
Message was edited by:
7stud
Ah, it's a proprietary Netscape extension to Java. It looks like trying to compile an Applet that uses the JSObject is a bit of a nightmare. You have to locate the jar file containing the netscape.javascript.JSObject class on your computer somewhere in your browser's folders.
Also, my book says that if the web page author does not put "mayscript" in the applet tag, then the Java applet code won't be able to talk to javascript and cause it to change the page in the browser.
Also, the user could have javascript disabled.

Similar Messages

  • Put my URL parameter in a JavaBean attribut

    Put an URL parameter in a JavaBean attribut
    I am new in JHeadstart and ADF/UIX Technologie
    I need to put an URL parameter in a JavaBean before to show the view
    My URL :
    http://IPadress:8989/IBA2-ViewController-context-root/StartAppModule.do?login=TOM
    My struts-config.xml :
    <action path="/StartAppModule" forward="/StartIusIbaMesApplis.do"/>
    <action path="/IusIbaMesApplisTable" input="/WEB-INF/page/IusIbaMesApplisTable.uix" type="oracle.jheadstart.controller.strutsadf.action.JhsDataAction" className="oracle.jheadstart.controller.strutsadf.action.JhsDataActionMapping" parameter="/WEB-INF/page/IusIbaMesApplisTable.uix" name="DataForm">
    <set-property property="modelReference" value="IusIbaMesApplisUIModel"/>
    <set-property property="breadcrumbParamExpressions" value="${bindings.IusIbaMesApplisAppwebNom}"/>
    <set-property property="bindParams" value="IusIbaMesApplisIterator=${data.Bean1testUIModel.userlogin}"/>
    </action>
    In a JSP or a Servlet that will probably be
    //get param login
    String myparm = request.getParameter("login");
    //find my JavaBean
    DCBindingContainer bc = (DCBindingContainer) request.getAttribute( "bindings");
    JUCtrlAttrsBinding ctrlBindinglogin =(JUCtrlAttrsBinding)bc.findCtrlBinding("data.Bean1testUIModel.userlogin ");
    //put the value in my JavaBean attribut
    ctrlBindinglogin.setAttribute("userlogin ", myparm);
    How to put this whith ADF/UIX technologie after the JavaBean was created and before to show the view ?
    Is it the better choice to do that ?
    Could you help me please ?

    Hi,
    Yes, I think Dispatch_input() has to be put in Do_request event.
    There is another alternative to using Get_form_fields method. In Do_Handle_Data event you can read the table form_fields and get the value of the input on the page.
    read table form_fields into <workarea> with key name = '<url inputfield name>'.
    get the value.
    Hope this helps.
    Thanks,
    Rashmi.

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • In jsp file, how to transfer parameter between two javabean?

    In jsp file, how to transfer parameter between two javabean?
    for example
    Bean1 has a attribute A
    Bean2 has a attribute B
    how to transfer the value of A to B

    Have you tried something like...
    <jsp:setProperty name="Bean2" property="B" value="<jsp:getProperty name="Bean1" property="A" />" />

  • Pass URL parameter for zip code

    In this fake url I want to pass the zip code value of the confirmed BP into "zipcode"
    https://acme.com/locator.jsp?zip=zipcode
    from the other post I have read the parameter name would be "zipcode" and thru the transaction launcher I am able to assign parameter value =
    //selectedClmBpLinkRelationship/BpRelLinkBusinessPartner/BuilStandardAddressRel/POSTL_COD1
    The transaction launcher is opening the launcher but not passing the value into the field. The window opens but the field is not filled with the zip code.
    If I open a new ie browser and put in url
    https://acme.com/locator.jsp?zip=60001
    the url is reached and 60001 is filling the zip code field.
    Is there an easy way to debug and see if any value is getting passed?
    Am I conceptually on base for what I am trying to do?

    Hi Shwetha,
        That got me pointed in the right direction where we could get it to work.
    For others, these were some other points we used to get it to work.
    1. in the IMG where the url is defined don't add the ZIP parameter here so our IMG entry =  https://acme.com/locator.jsp?
    when the page launched correctly the parameters showed https://acme.com/locator.jsp?&zipcode=60001
    2. for zip code parameter value we used //currentCustomer/BuilStandardAddressRel/POSTL_COD1  >> this goes in the transaction launcher with parameter zipcode and is then visible in the IMG entry "copy/delete launch transactions"

  • ABAP -WebDynpro - Read URL Parameter

    Hi,
    We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
    1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
    2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
    I would appreciate your help...
    Thanks
    Meenal

    Hi Menal,
    I had the same problem.
    Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
    2nd
    In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
    method handledefault .
    *&- Add FOF and HOOK_URL to assistanceclass attributes
      wd_assist->hook_url = hook_url.
    endmethod.
    After this you can read your HOOK_URL e.g in a view via:
    concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
    I hope your question is answered.
    What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
    John

  • How to pass a querry as a url parameter

    Hi Forum
    I need to pass an sql query as a url parameter I wrote the following code:
    String applicationURL = WDURLGenerator.getApplicationURL("local/AgencyFee_SettlementSummaryReport", "Ko_AgencyFee_PrinterFriendly");
    applicationURL="?distACN="wdContext.currentVn_SettlementComp_InputParametersElement().getVa_SettlementComp_PayToACN()"&type="type"&query="strGreportQuery;
    but got the following exception:
    ecom.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=../../local/AgencyFee_SettlementSummaryReport/Ko_AgencyFee_PrinterFriendly?type=1&query=SELECT v.PAY_TO_ACN_NAME PAY_TO_ACN_NAME, v.DIST_ACN DIST_ACN, v.DIST_NAME DIST_NAME, v.AP_CHECK_NBR AP_CHECK_NBR, v.BATCH_NBR BATCH_NBR, TO_DATE(v.TRANS_DATE) TRANS_DATE, TO_DATE(v.AP_CHECK_DATE) SETTLE_DATE, Sum(v.QTY_DELIVERED) QTY_DELIVERED, Sum(v.TOTAL_AMT) TOTAL_AMT, Min(TO_DATE(concat(concat(concat(concat(to_char(v.SHIP_YY),'/'), to_char(v.SHIP_MM)),'/'), to_char(v.SHIP_DD)),'yyyy/mm/dd')) DEL_DATE_BEG, Max(TO_DATE(concat(concat(concat(concat(to_char(v.SHIP_YY),'/'), to_char(v.SHIP_MM)),'/'), to_char(v.SHIP_DD)),'yyyy/mm/dd')) DEL_DATE_END, (select sum(vr.qty_delivered) from VRF_ERR_DETL vr where vr.ccf_acn_nbr=v.dist_acn and to_char(vr.batch_nbr)=v.batch_nbr) TOTAL_ERR_REC From VRF_VOL_DETL v WHERE v.PAY_TO_ACN = 3182 AND v.AP_CHECK_NBR = 0 GROUP BY v.PAY_TO_ACN_NAME, v.DIST_ACN, v.DIST_NAME, v.AP_CHECK_NBR, v.BATCH_NBR, v.TRANS_DATE , v.AP_CHECK_DATE ORDER BY v.DIST_ACN, v.AP_CHECK_NBR, v.BATCH_NBR
    Can someone help me out on this?
    Thanks & Regards
    Jaspreet Kaur

    Hi jaspreet,
    you can try the following:
    HashMap params = new HashMap();
    params.put("distACN", wdContext.currentVn_SettlementComp_InputParametersElement().getVa_SettlementComp_PayToACN());
    params.put("type","type");
    params.put("query",strGreportQuery);
    try {
    String applicationURL = WDURLGenerator.getApplicationURL("local/AgencyFee_SettlementSummaryReport", "Ko_AgencyFee_PrinterFriendly", params);
    } catch (Exception ex) {

  • How to open URL IView with dynamic url parameter (navigate_absolute)

    Hi Experts,
    i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
    and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
    Thx Markus

    Hi Markus,
    You can take help of the following code snippet.
    Here we are calling an Iview using absolute navigation and passing URL parameters as well
    * Select the input value entered and then pass it to REM INQ application---------
      DATA lv_inputbusobjid   TYPE          wd_this->Element_context-inputbusobjid.
      DATA lv_path            TYPE          string.
      DATA lv_tab_wd_param     TYPE          wdy_key_value_list.
      DATA lv_str_wd_param     TYPE          wdy_key_value.
      DATA lo_el_context      TYPE REF TO   if_wd_context_element.
      DATA api_component      TYPE REF TO   if_wd_component.
      DATA window_manager     TYPE REF TO   if_wd_window_manager.
      DATA window             TYPE REF TO   if_wd_window.
      DATA lo_api_component   TYPE REF TO   if_wd_component.
      DATA lo_portal_manager  TYPE REF TO   if_wd_portal_integration.
    * read the imput data first-------------
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUTBUSOBJID`
        IMPORTING
          value = lv_inputbusobjid ).
    ** call remuneration inquiry window using absolute navigation
      CLEAR lv_tab_wd_param.
    * Adding parameters
      lv_str_wd_param-key = 'sap-wd-configId'.
      lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lv_str_wd_param-key = 'BUSOBJ_ID'.
      lv_str_wd_param-value = lv_inputbusobjid.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      if lo_portal_manager is BOUND.
    * PCD
      lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
      lo_portal_manager->navigate_absolute(
        navigation_target   = lv_path
        navigation_mode     = if_wd_portal_integration=>co_show_external
        window_features     = 'toolbar=no,resizable=yes,scrollbars=yes'
        business_parameters = lv_tab_wd_param
      endif.
    Hope this helps
    Regards
    Manas Dua

  • How does ISE choose which IP to put in URL redirect response?

    Hello,
    does anyone know how does ISE choose which IP to put in URL redirect response if it has more than one interface with an IP address and all interfaces are enabled in the portal configuration?
    I have a single ISE 1.3 PSN with all four interfaces configured, enabled, each on unique VLAN, and each with unique IP address.
    In the CWA portal configuration, all four interfaces are enabled.
    Wired clients connect to NAD, NAD sends RADIUS request to ISE, ISE responds with a RADIUS response including the URL-Redirect parameter which specifies the web redirect URL. ISE configuration uses "ip:port" in the URL. 
    My question is how does ISE choose which of its four interfaces to put in this URL? Is it always the same interface that RADIUS packets were received on? Or does it always choose the first portal enabled interface? Or is there another logic? Configurable or unconfigurable?
    Thanks!

    ISE uses the first interface enabled for that portal, so if want to use a specific interface, then only enable that interface.  If interface is GE0, then default behavior is to redirect with ip value set to node's FQDN.  If interface other than GE0, then default behavior is to return the IP address of the associated interface. 
    Aliases can be configured for each interface using the CLI 'ip host' command to associate a hostname/FQDN to the IP address of a given interface.  When configured, ISE will return that value rather than IP address in redirect.  This is critical if want to avoid certificate trust warning on connecting clients.
    Be sure that certificate assigned to interface includes the correct FQDN or optionally wilcard value in the CN or SAN fields to avoid cert warnings.

  • Different behavior when URL Parameter clientDebug is set

    Hi experts
    I'm facing a strange behavior in my WebDynpro application.
    Whenever I launch it with the URL parameter sap-wd-clientDebug set to X the interactiveForm element on one of my views works flawlessly (i.e. the assigned context nodes on my view get updated on each roundtrip and changes in the context are reflected in the interactiveForm). When sap-wd-clientDebug is not set however the interactiveForm still communicates with the WD (a breakpoint in a dummy OnSubmit action is triggered correctly when the submit button on the interactiveForm is pressed) but contex changes are no longer reflected in the interactiveForm. Only after navigating back and forth between my views does the interactiveForm get updated.
    Any hints or ideas on how to solve this issue would be great.
    ADS Version: 800.20090130093518.519793
    Verion of ZCI Script: 802.20090903061432.597600.590319
    Only the attributes dataSource and templateSource of the interactiveForm element are set.
    Regards
    Chris

    any clue ???

  • Getting a URL parameter

    I have in my web.xml the following
    <servlet>
    <servlet-name>display</servlet-name>
    <description>Display an Interaction Record</description>
    <servlet-class>ca.bind.servlets.DisplayInteractionRecordServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>display</servlet-name>
    <url-pattern>/bbs/display</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>display</servlet-name>
    <url-pattern>/bbs/display/*</url-pattern>
    </servlet-mapping>
    I want to be able to put in URLs like the following
    http://server/bbs/display/80
    and the servlet knows to bring up record 80.
    The url mapping is working but i'm not sure how to retrieve my parameter..any help is appreciated

    http://server/bbs/display/?num=80
    Then retrieve it with:
    String num = request.getParameter("num");

  • Passing URL parameter to form

    Hi, i'm currently building a back-end for a small site. What
    i'm trying to do is enable a user to edit and update an article.
    I've got a dynamic table, i'm trying to use a URL form parameter to
    pass the unique ID of an article to a form that brings up the
    article for editing, but its not working, its just bringing up the
    same record whatever link is clicked in the dynamic table. Can
    somebody point out whats missing? I'm using PHP & mySQL.
    Thanks, any help appreciated.

    You don't specify what language you're using, or how you're
    populating your
    form.
    If you're using a recordset to populate your form, simply
    edit it and then
    set the filter to your ID field, and use the URL parameter to
    capture your
    variable. Make sure in your recordset for your page to
    display the records
    you put the same variable name as you use on your previous
    page with the url
    variable.
    HTH,
    Jon
    "MarkAD88" <[email protected]> wrote in
    message
    news:e4f5s9$4l$[email protected]..
    > Hi, i'm currently building a back-end for a small site.
    What i'm trying to
    > do
    > is enable a user to edit and update an article. I've got
    a dynamic table,
    > i'm
    > trying to use a URL form parameter to pass the unique ID
    of an article to
    > a
    > form that brings up the article for editing, but its not
    working, its just
    > bringing up the same record whatever link is clicked in
    the dynamic table.
    > Can
    > somebody point out whats missing? Thanks, any help
    appreciated.
    >

  • URL parameter in a stateless BSP - 2004s

    We are on 2004s release (SP6) and have a custom BSP stateless application using MVC approach. A URL parameter is passed to the BSP as follows:
    http://<host.domain.com>:8000/sap/bc/bsp/sap/<BSP App>/start.htm?sap-client=151&sap-sessioncmd=open&param=555
    The Do_Init method of the main controller has the following code:
      DATA: t_url_fields TYPE tihttpnvp.
      CALL METHOD request->get_form_fields
        CHANGING
          fields = t_url_fields.
    The internal table t_url_fields is not getting the parameter (It is empty).
    I tried various other things and looked at previous SDN posts and could not find any other pointers. Everywhere the recommendation is to use the "get_form_fields" method. Also this used to work on the WAS 620 box earlier. Am I missing something fundamental here? This is a very old subject and I myself used it successfully earlier. Maybe the 2004s release wants something else? Checked OSS also.
    Your help in this would be appreciated. Please let me know about how to troubleshoot this, because I tried everything from my side.
    P.S: Points will be awarded..

    Hi,
    Yes, I think Dispatch_input() has to be put in Do_request event.
    There is another alternative to using Get_form_fields method. In Do_Handle_Data event you can read the table form_fields and get the value of the input on the page.
    read table form_fields into <workarea> with key name = '<url inputfield name>'.
    get the value.
    Hope this helps.
    Thanks,
    Rashmi.

  • CFSWITCH of a URL Parameter

    In the attached code, the CFQUERY inside the first CFCASE was
    working fine (without using
    URL.do) before I added the CFSWITCH. But now the switch
    statement always falls to the default case (regardless of what
    URL.do is), and I have no idea why. And the URL parameter
    itself (given in the
    FORM ACTION attribute) has no typos in it in either case.
    Could I get some help with this? Thanks!

    Oh! Yes, that's the correct behavior... I guess I'm still
    getting use to the pound signs. PHP goes the opposite route to
    accommodate both literal values and variables inside the output
    tags, requiring explicit quotes for literals rather than explicit
    hashes for variables.
    Anyway, thanks!

Maybe you are looking for

  • Java XML Parser:Null Pointer exception in EntityReader

    I got NullPointer Exception when trying to parse a XML file which is pointed by a net URL, (say "http://www..."). The code causing problem is like: parser.parse(new URL("http://www.../demo.xml")); the exception I got is: java.lang.NullPointerExceptio

  • Max size iphoto library

    Hi, is there a maximum size for an iPhoto library file? Mine is 150 GB at the moment and I wonder if I can keep feeding it :-) Thanks, MrsLaubie

  • Powerbook stuck on apple icon screen

    When I try to start my powerbook it makes the chime then is stuck on the grey screen with the apple icon. No response from any keys. There is a dvd in the drive, so i can't put my install disk in it. I've read that people were able to boot from the d

  • Will iphoto 08 make sense of my dormant photo library?

    In late 2004 I purchased a Powerbook G4 and used the preinstalled iphoto to manage my photo content. After a few years, I switched to PC but copied the iphoto library folder to an external drive. While using a PC I loaded the iphoto content into a cr

  • IWeb can't communicate with FTP Server.

    I am trying to update my IWeb and I get a Publish Error that says "There wa an error communicating with the FTP server.   Try again later, or check with your service provider.  I've tried again and I've checked my service provider who says everything