Getting value of parameter from request object

If i submit a form using button element of html form then i dont get name of the button element as Parameter of request object and hence its value.
why and how?
Thanks in advance

what do you mean submit a form with a button? You don't submit a form with a button, you submit it with a submit element. Unless you use Javascript to submit from an onclick handler in the button. In which case, you aren't submitting from the button, but from the script. I'm not sure that buttons are sent in forms. Why would they? If you are using buttons and Javascript, then you could use a hidden field and set it's value to the button's value when it's clicked before submitting the form.

Similar Messages

  • Unable to get value of the property 'nodeName': object is null or undefined  Error in apex_ns_3_1.js

    I am getting the following error with IE9 and Firefox 26 with application express 3.2:
    SCRIPT5007: Unable to get value of the property 'nodeName': object is null or undefined
    apex_ns_3_1.js, line 589 character 10
    this.dialog.check2 = function (e){
    var tPar = html_GetTarget(e);
    var lEl = $x('apexir_col_values_drop');
    var l_Test = true;
    ******  while(tPar.nodeName != 'BODY'){
    tPar = tPar.parentNode;
    if(tPar == lEl){l_Test = false;}
    if(l_Test){$x_Remove('apexir_col_values_drop')}
    This happens when I click the Gear Icon, then Filter, then I click the dropdown arrow under expressions and pick an expression from the list.
    If I set (through IE Developer tools) back to IE8 mode, I don't get the error.

    Guess no one is using 3.2 any longer or no one else gets this error.....  Guess I can edit the JavaScript file to trap the error since it really doesn't seem to cause an issue.  Just didn't want to have to go that route.

  • To find number of parameter from request

    Freinds,
    Is there any way to find out number of parameter submitted from request object. But the constraint will be with out going through loop.
    Example
    int count = 0;
              Enumeration list = request.getParameterNames();
              while (list.hasMoreElements())     {
                   count++;
                   list.nextElement();
              }

    Can some body help me to resolve the warning created by this line
    ArrayList paramList = null;
    paramList = new ArrayList(Collections.list(request.getParameterNames()));CheckFilter.java:96: warning: [unchecked] unchecked conversion
    found : java.util.Enumeration
    required: java.util.Enumeration<T>
    paramList = new ArrayList(Collections.list(request.getParameterNames()));
    ^
    CheckFilter.java:96: warning: [unchecked] unchecked method invocation: <T>list(java.util.Enumeration<T>) in java.util.Collections is applied to (java.util.Enumeration)
    paramList = new ArrayList(Collections.list(request.getParameterNames()));
    ^
    CheckFilter.java:96: warning: [unchecked] unchecked call to ArrayList(java.util.Collection<? extends E>) as a member of the raw type java.util.ArrayList
    paramList = new ArrayList(Collections.list(request.getParameterNames()));

  • About not getting value in wa_vbap from it_vbap.

    REPORT  ZSIMPLEALV.
    TABLES: VBAK, VBAP, SSCRFIELDS.
    TYPE-POOLS: SLIS.
    TYPES: BEGIN OF TY_VBAK,
           VBELN TYPE VBAK-VBELN,
           BSTDK TYPE VBAK-BSTDK,
           KUNNR TYPE VBAK-KUNNR,
           END OF TY_VBAK.
    TYPES: BEGIN OF TY_VBAP,
           VBELN TYPE VBAP-VBELN,
           POSNR TYPE VBAP-POSNR,
           MATNR TYPE VBAP-MATNR,
           KWMENG TYPE VBAP-KWMENG,
           VRKME TYPE VBAP-VRKME,
           ARKTX TYPE VBAP-ARKTX,
           WERKS TYPE VBAP-WERKS,
           NETPR TYPE VBAP-NETPR,
           END OF TY_VBAP.
    TYPES: BEGIN OF TY_FINAL,
           VBELN TYPE VBAK-VBELN,
           BSTDK TYPE VBAK-BSTDK,
           KUNNR TYPE VBAK-KUNNR,
           POSNR TYPE VBAP-POSNR,
           MATNR TYPE VBAP-MATNR,
           KWMENG TYPE VBAP-KWMENG,
           VRKME TYPE VBAP-VRKME,
           ARKTX TYPE VBAP-ARKTX,
           WERKS TYPE VBAP-WERKS,
           NETPR TYPE VBAP-NETPR,
           END OF TY_FINAL.
    DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
          WA_VBAK TYPE TY_VBAK.
    DATA: IT_VBAP TYPE TABLE OF TY_VBAP,
          WA_VBAP TYPE TY_VBAP.
    DATA: IT_FINAL TYPE TABLE OF TY_FINAL,
          WA_FINAL TYPE TY_FINAL.
    DATA: IT_CATLOG  TYPE SLIS_T_FIELDCAT_ALV,
          GT_SORT   TYPE SLIS_T_SORTINFO_ALV,
          WA_CATLOG TYPE SLIS_FIELDCAT_ALV,
          GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN  BEGIN OF BLOCK B1 .
    SELECT-OPTIONS: PO_DAT FOR vbak-bstdk.
    SELECTION-SCREEN END OF BLOCK B1  .
    START-OF-SELECTION.
    PERFORM GET_DATA_FROM_VBAK.
      PERFORM GET_DATA_FROM_VBAP.
      PERFORM WRITE_DATA_TO_FINAL.
    END-OF-SELECTION.
    PERFORM SHOW_DATA.
    *&      Form  GET_DATA_FROM_VBAK
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA_FROM_VBAK .
      SELECT VBELN BSTDK KUNNR
        FROM VBAK
        INTO TABLE IT_VBAK
        WHERE BSTDK IN  PO_DAT.
    ENDFORM.                    " GET_DATA_FROM_VBAK
    *&      Form  GET_DATA_FROM_VBAP
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA_FROM_VBAP .
    SELECT  VBELN  POSNR MATNR KWMENG VRKME ARKTX WERKS NETPR
      FROM VBAP
      INTO TABLE IT_VBAP
      FOR ALL ENTRIES IN IT_VBAK
      WHERE VBELN = IT_VBAK-VBELN.
    ENDFORM.                    " GET_DATA_FROM_VBAP
    *&      Form  WRITE_DATA_TO_FINAL
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA_TO_FINAL .
      REFRESH IT_FINAL.
      LOOP AT IT_VBAP INTO WA_VBAP WHERE VBELN = VBAK-VBELN.
           WA_FINAL-VBELN = WA_VBAP-VBELN.
           WA_FINAL-POSNR = WA_VBAP-POSNR.
           WA_FINAL-MATNR = WA_VBAP-MATNR.
           WA_FINAL-KWMENG = WA_VBAP-KWMENG.
           WA_FINAL-VRKME = WA_VBAP-VRKME.
           WA_FINAL-ARKTX = WA_VBAP-ARKTX.
           WA_FINAL-WERKS = WA_VBAP-WERKS.
           WA_FINAL-NETPR = WA_VBAP-NETPR.
    IF SY-SUBRC IS INITIAL.
      READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VBELN = WA_VBAP-VBELN.
           WA_FINAL-VBELN = WA_VBAK-VBELN.
           WA_FINAL-KUNNR = WA_VBAK-KUNNR.
    ENDIF.
       APPEND WA_FINAL TO IT_FINAL.
        CLEAR: WA_FINAL, WA_VBAP, WA_VBAK.
      ENDLOOP.
    ENDFORM.                    " WRITE_DATA_TO_FINAL
    "tell me anybody 'why am i not getting value in wa_vbap from it_vbap?.

    Hello Mr:Sardar,
    There are a lot thinks we need to notice while writing a report.
    First of all VBAP is an item table and VBAK is a header table. For each header data there can be multiple item data. So your report should loop over header data first
    Let it be
    loop at it_vbak into wa_vbak.
    endloop.
    Now wa_vbak will contain one header data, for this header there can be more than one item data in vbap.
    now the code will become
    loop at it_vbak into wa_vbak.clear wa_vbap.
      loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
      wa_final-vbeln = wa_vbak-vbeln.
      append wa_final to it_final.
      endloop.
    endloop.
    Another thing u must take care of is that while u are using FOR ALL ENTRIES in your select statement, check whether this itab is initial or not.If itab is initial program will fetch all the data irrespective of conditions. Please read F1 help for for all entries.
    Hope this will help you.
    Regards,
    Antony Thomas

  • Getting error while passing implicit request object from JSP to JavaBean

    Hi,
    I am getting error while passing implicit object ie( request object)
    from within JSP to JavaBean.
    Following is source for JSP, JavaBean and Error message I am getting.
    vaLookup.jsp Source
    <jsp:useBean id="db" class="advisorinsight.javabeans.DisplayPages"
    scope="request">
    <jsp:setProperty name="db" property="request" value="<%= request %>"
    />
    </jsp:useBean>
    <jsp:getProperty name="db" property="totalrecords" />
    JAVABEAN DisplayPages.java source
    package javabeans;
    import java.io.Serializable;
    import javax.servlet.http.HttpServletRequest;
    public final class DisplayPages implements Serializable {
    private String totalrecords;
    private HttpServletRequest request;
    public void setRequest(HttpServletRequest req){
    this.request = req;
    public java.lang.String getTotalrecords()
    this.totalrecords =
    this.request.getParameter("totalrecords");
    return this.totalrecords;
    public DisplayPages(){
    totalrecords = "";
    request = null;
    error after executing vaLookup.jsp
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service JavaExtData successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service LockManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service RLOPManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:7] info: ENGINE-ready: ready: 10819
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:46:0] info: JSPRunnerSticky: init
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:51:7] error: Exception: SERVLET-compile_failed:
    Failed in compiling template: /va/valookup.jsp, javac error:
    c:\iplanet\ias6\ias\APPS\variabl
    S\va\valookup.java:76: Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    Exception Stack Trace:
    java.lang.Exception: javac error:
    c:\iplanet\ias6\ias\APPS\variableannuity\va\WEB-INF\compiled_jsp\jsp\APPS\va\valookup.java:76:
    Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown
    Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    The only thing that I see that looks funny to me is when you pass the request object into the method using <%=request%>, Im not sure whats going to happen here because that is suppose to print the results. Have you tried simply using <%request%>?

  • Clearing variable from Request object

    Hi everyone,
    After getting value from request.getParameter("var"), I want to clear this "var" variable from request scope. So that in the next coming statements if i again call the same request.getParameter("var") statement than it must return null
    So how to handle this issue of clearing certain variable from request scope or flushing the whole request object

    I don't know what you are trying to do but it sounds confused. I would suggest you read the parameter once, at the beginning of the code. Store it in a variable and use that variable as necessary. If you still need help then would you explain what you are trying to achieve here.

  • Polish characters are not retrived from request object

    Hi
    I have a problem in passing POLISH character through request object.
    I am calling a servlet from a jsp with a hyper link. when the link in jsp is clicked the following code will be executed
    response.sendRedirect(response.encodeURL("http://hostname:8080/appName/abc.do?method=getReport&FirstName=Ko�tun&LastName=Pro�ciak"));
    this code is passing two POLISH strings First Name & Last Name to the servlet.
    In the servlet i am trying to retrieve the values of the parameters "FirstName" & "LastName".
    Sring FN=request.getParameter("FirstName");
    String LN=request.getParameter("LastName");
    The variable FN & LN doesn't show the POLISH character in servlet.
    I tried with the below option in JSP
    <meta content="text/html; charset=ISO-8859-2" > (or)
    <meta content="text/html; charset=UTF-8" >
    (or)
    <%@ page contentType="text/html;charset=ISO8859_2" %>
    (or)
    <%@ page contentType="text/html;charset=UTF-8" %>
    In Servlet i tried using
    request.setCharacterEncoding("ISO-8859-2");
    (or)
    request.setCharacterEncoding("UTF-8");
    Pl help me.
    Thanks in advance

    Don't do it then. Those characters are not allowed inside a URL and have to be encoded. You know, that %... stuff.

  • Get poll interval parameter from adapter module

    Hi,
    I'd like to make special treatment in my adapter module based on the "poll interval" information filled in Processing Parameters part of the adapter configuration.
    Can an adapter module access this information?
    regards
    Yann

    Hi Yann,
    >>>>Can an adapter module access this information?
    of course it can you just have to use
    a correct parameter's name
    check this post to get the java code
    Re: Access the URL Parameter from a Adaptermodule
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to get values against checkbox from table

    hi all,
    how can i get column values from database against multiple check boxes,
    is there array in oracle to store multiple values?
    i stored value of check boxes in column named checkid, in table named information.
    now i want to get value of infoid against these chekid column where checkid=1 from this table and want to store infoid against it in another table named handing,
    i want to do like this
    -----Table handing-------
    HID value1 value2
    1 abc xyz
    1 abc xyz
    1 abc xyz
    2 ccc ddd
    3 bbb aaa
    3 bbb aaa
    i wrote code
         DECLARE
         var_id number;
    CURSOR my_cur is
    select infoid from information
    where CHECKID = 1;
         BEGIN
         open my_cur;
         fetch my_cur into var_id;
         CLOSE my_CUR;
         insert into handing
              (hID,
              value1,
              value2)
         values
              (var_id,
              :handing.value1,
              :handing.value2);
    COMMIT;
         SAVED_ALERT;
    end;
    but i know that var_id data type is number it must be array, this codd does not works what should i do? should i use loop but how??? please help me.
    regars

    Hello Wreesha,
    you can enhance your chance to get an answer in several ways.
    - Use {noformat}{noformat} Tags around your code examples to make them more readable and to preserve white space
    - Provide CREATE and INSERTS for sample data (We still don't know how your information table looks like and what date it has)
    - The expected result (also formatted)
    - Don't use words like "immediate" or "asap". We don't get paid for answering questions.
    Regards
    Marcus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Retrieve parameter from an Object (Xml reader)

    hi,
    I have 2 classes and im trying to receive the variable "xmlResult" from the object my_XML, but its always null.
    I understand that is an asynchronous problem, but I dont know how to resolve this.
    Thanks for you help.
    XmlClass.as
    package  {
       import flash.net.URLLoader;
       import flash.net.URLRequest;
       import flash.events.Event;
       import flash.events.EventDispatcher;
       import flash.display.Loader;
       import flash.events.MouseEvent;
       import flash.display.Sprite;
       import flash.display.SimpleButton;
       import flash.text.TextField;
       public class XmlClass  extends Sprite{
          public var loader:URLLoader;
          public var xmlResult:XMLList;
          public var pathXml:String;
            public function XmlClass(pathXml:String) {
             retrieveData(pathXml);
             //trace(xmlResult);
          private function retrieveData(pathXml:String):void{
             loader=new URLLoader();
             loader.addEventListener(Event.COMPLETE,onCompleteLoading);
             //var urlRequest:URLRequest= new URLRequest(pathXml);
             loader.load(new URLRequest(pathXml));                      
          private function onCompleteLoading(e:Event):void{
             xmlResult=(XMLList(e.target.data));
    Main_1.as
    package  {
       import flash.display.MovieClip;
       import flash.events.Event;
       public class Main_1 extends MovieClip{
          //private var xmlList:XMLList;
          private var my_Xml:XmlClass;
          public var resultXml:XMLList;
          //PATH TO XML File
          private var pathXml:String="assets/color.xml";
          public function Main_1() {
             createXml(pathXml);
          public function createXml(pathXml){
             my_Xml=new XmlClass(pathXml);
             trace(my_Xml.xmlResult);
    }

    I suppose the simplest way would be to redispatch Event.COMPLETE. Something like this:
    <SNIP>
      public class XmlClass  extends Sprite{
          public var loader:URLLoader;
          public var xmlResult:XMLList;
          public var pathXml:String;
            public function XmlClass(pathXml:String) {
             retrieveData(pathXml);
             //trace(xmlResult);
          private function retrieveData(pathXml:String):void{
             loader=new URLLoader();
             loader.addEventListener(Event.COMPLETE,onCompleteLoading);
             //var urlRequest:URLRequest= new URLRequest(pathXml);
             loader.load(new URLRequest(pathXml));                      
          private function onCompleteLoading(e:Event):void{
             xmlResult=(XMLList(e.target.data));
              dispatchEvent(e);
    Main_1.as
    package  {
       import flash.display.MovieClip;
       import flash.events.Event;
       public class Main_1 extends MovieClip{
          //private var xmlList:XMLList;
          private var my_Xml:XmlClass;
          public var resultXml:XMLList;
          //PATH TO XML File
          private var pathXml:String="assets/color.xml";
          public function Main_1() {
             createXml(pathXml);
          public function createXml(pathXml){
             my_Xml=new XmlClass(pathXml);
                        if(my_Xml.xmlResult){doXMLDataReady();}
                       else{
                   my_Xml.addEventListener(Event.COMPLETE, onXMLDataReady);
         function doXMLDataReady(){trace(my_Xml.xmlResult);}
         function onXMLDataReady(event:Event)
            my_Xml.removeEventListener(Event.COMPLETE, onXMLDataReady);
                   doXMLDataReady();

  • Reading Null Values From Request Object

    For a proof-of-concept, I wrote a mini program that has 2 files. File #1 is main.html. There's a javascript function called addNewRowToThisTable that isn't displayed but it basically allows the user to create as many rows in the table as user desires. When the "Submit" button is clicked the file ReadIt.jsp is called and it's supposed to display on the first and last names of the people who had the checkbox for that row checked. The best way to illustrate the problem I'm having is through an example. Let's say there are 3 rows:
    [x] Alan Anderson [Add New Row]
    [ ] Bob Brady [Add New Row]
    [x] Carl Chadwick [Add New Row]
    [Submit]
    Let's assume that only rows 1 and 3 are clicked. After the form is submitted the JSP will print...
    firstNameArr .length = 3
    lastNameArr .length = 3
    isSelectedArr.length = 2
    firstNameArr[0] = Alan
    lastNameArr[0] = Anderson
    firstNameArr[1] = Bob
    lastNameArr[1] = Brady
    Unfortunately firstNameArr[1] and lastNameArr[1] should be "Carl", and "Chadwick" respectively. I know the reason why it's failing is because my program relies on the array index of the "isSelected" field to perfectly match up with the "firstName" and "lastName" fields. It's unreliable because if the checkbox for a row is not checked then it won't show up in the JSP String array isSelectedArr. I'm not really sure how to get around this problem. I have 2 ideas at the beginning of solutions but I'm not sure how to follow through on either and I'm also not sure if either is the proper approach to take. My guesses are...
    1) There's some way in JSP to use "getParameterValues('isSelected')" to retrieve the full array of "isSelected" items regardless of whether or not they're checked. That would guarantee that my arrays would match up correctly. Unfortunately, I haven't been able to find this.
    2) Maybe I can put in some sort of ID in the "isSelected" field that would relate the checkbox to the rest of the data in the row. The problem with this is that I've got a dynamic # of rows due to my addNewRowToThisTable method.
    So the bottom line is that I'm thoroughly stumped. If anyone can offer advice I'd be very grateful.
    main.html
    <html><head><title></title></head><body>
    <form method="get" action="ReadIt.jsp">
    <table>
    <tr>
         <td><input type="checkbox" name="isSelected" /></td>
         <td><input type="text" name="firstName" /> </td>
         <td><input type="text" name="lastName" /></td>
         <td><input type="button" value="Add New Row" onClick="addNewRowToThisTable(this)" />
    </tr>
    <tr>
         <td colspan=4><input type="submit" value="submit"></input></td>
    </tr>
    </table>
    </form>
    </body></html>
    ReadIt.jsp
    <%
    String[] isSelectedArr = request.getParameterValues("isSelected");
    String[] firstNameArr = request.getParameterValues("firstName");
    String[] lastNameArr = request.getParameterValues("lastName");
    if (firstNameArr != null) System.out.println("firstNameArr .length = " + firstNameArr .length);
    if (lastNameArr != null) System.out.println("lastNameArr .length = " + lastNameArr .length);
    if (isSelectedArr != null) {
         System.out.println("isSelectedArr.length = " + isSelectedArr.length);
         for (int i=0; i < isSelectedArr.length; i++) {
              System.out.println("firstNameArr["+i+"] = " + firstNameArr);
              System.out.println("lastNameArr["+i+"] = " + firstNameArr[i]);
    %>

    it's sort of a kludge, but try this:
    your javascript function adds new for fields that get submitted to the servlet. name the checkboxes uniquely with a patterm with said function, say isSelected-1, isSelected-2, isSelected-3... now also name the first and last name fields the same way. fname-1, fname-2, fname-3... lname-1,lname-2,lname-3.
    when you get to the page that is supposed to match them up, go through all the request parameters looking for those that start with "isSelected-" take the last char (the index), convert it to an int, and then from your request do:
    String first = request.getParameter("fname-" + indexThatWasFound);
              String last = request.getParameter("lname-" + indexThatWasFound);in looping over the request for each index recovered from the searching of the request for the isSelected-n values, you will get the matching first and last name.
    I TOLD you it was a kludge.

  • Get Date parameter from request

    hi all,
    i've a JSP in which there is a date field, in the JSP i'm declaring a date variable and use request.getParameter but the date variable store another date with time part while i want the entered date without time part...any help?

    My CO --------------------------
    if( pageContext.getParameter("Submit") != null)
    String userid = (new Integer(pageContext.getUserId())).toString();
    String personid = (new Integer(pageContext.getEmployeeId())).toString();
    String v_date = pageContext.getParameter("StartDate")+"";
    String v_end_date = pageContext.getParameter("EndDate")+"";
    System.out.println("call to process request0 : " + userid);
    System.out.println("call to process request0 : " + personid);
    System.out.println("call to process request0 : " + v_date);
    System.out.println("call to process request0 : " + v_end_date);
    Serializable[] params = {personid,v_date,v_end_date};
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String empUserid = pageContext.getUserName();
    System.out.println(pageContext.getUserName());
    System.out.println("Calling initMoverQuery");
    am.invokeMethod("initMoverQuery", params);
    System.out.println("Call out of initMoverQuery");
    My AM------------------------------------------------------------
    public void initMoverQuery(String pid,String sd,String ed)
    System.out.println("In init Query of AM" +pid);
    EmployeeMoverVOImpl vorep = getEmployeeMoverVO1();
    Number personid = new Number(Integer.parseInt(pid));
    System.out.println("user id"+ personid);
    System.out.println("start date"+ sd);
    System.out.println("end date"+ ed);
    if (vorep == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "EmployeeMoverRepVO1")};
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    if (!vorep.isPreparedForExecution())
    // vorep.initQuery(personid,sd1,ed1);
    vorep.setWhereClauseParam(0,personid);
    vorep.setWhereClauseParam(1,sd);
    vorep.setWhereClauseParam(2,ed);
    vorep.executeQuery();
    System.out.println("End SP VO Query");
    }

  • How to get user browser locale from view object

    Hello,
    Currently, I have a view object that's used to retrieve localized messages from data base. The resource table looks like the following:
    MSG_ID VARCHAR2,  --> specify the L10N resource reference
    LOCALE VARCHAR2, --> used to specify the user locale (browser locale)
    MESSAGE VARCHAR2  --> real message
    I'm creating a bind variable (let's say it 'RequestLocale') in this view object to specify the locale and to get the expected L10N message. Currently, the value for this bind is set as an Expression with value of 'viewObject.DBTransaction.session.locale.toString()'.
    After defining the view object (and the bind variable like above), I created a table by dragging the view object to a jsf page, and run and open the page in a web browser. It seems that the messages (specified by the locale) could be retrieved correctly. But once I change the web browser language settings to another preferred language, and refresh the page, I found that the message is still for the previous locale, and not refreshed to the locale (language/country) that's newly set in web browser.
    Am I supposed to do more thing to get the 'locale' work by using the adf view object bind variable?
    Thanks.

    Hi,
    after changing the locale, can you try a re-direct of the page to see if this changes the locale. In ADF, the locale is set by the HTTP request handler in the ADF lifecycle ensuring that the locale is passed to the middle tier. So the expected change is to come from the view layer (which is why I think you need a redirect). Another option to check is to access the HttpRequestObject from the FacesContext --> External Application to check the request locale
    Frank

  • How to read parameters from request object

    We want to read parameters from GET request
    but whenever we are calling GET_URI_PARAMETER from the REQUEST we don't see any results
    url is like
    http://coevi116.wdf.sap.corp:8000/sap(bD1lbiZjPTEwMA==)/bc/bsp/sap/z_test_json/jsontest.htm?PARAM=ABC
    But reading PARAM is not givng value of ABC
    onCreate and onRequest wherever we put the code it is not reading the value
    Can anyone please help and share some expert opinion

    in jsontest.htm page create a page attribute named "PARAM" with auto check box checked and check in oninitialization, this will carry the value passed to param from url.

  • Remove parameter from Request

    Hi,
    my Servlet computes a request (doGet()-method) with some parameters (e.g. http://myApp/test?param=Hello).
    Then it forwards to another servlet/jsp:
    request.getRequestDispatcher("/mySite").forward(request, response);
    But before forwarding, I want to remove the parameters! How can I do this?
    I cannot find a method like "request.removeParamter(param)" in the API!
    Thanks
    Daniel :-)

    Hi everyone.
    I had a similar problem and I've resolved it with a workaround: I needed to forward a Servlet to the Servlet itself, for multiple data posting, so I used a request attribute to determine if I was processing the first call or the next ones.
    I think this workaround will work also when you must forward Servlet1 to Servlet2.
    Here's the code:
    In the first time call (or in Servlet1):
    if (...some conditions...) {
    // Instead of removing parameter...
    request.setAttribute("switch","Y");
    In the next calls (or in Servlet2):
    String par = null;
    String switch = (String)request.getAttribute("switch");
    if (switch == null) {
    par = (String)request.getParameter("par");
    I know that in this way the "par" parameter is not really removed, however, if you managed the attribute "switch" correctly, it would be null.
    Don't forget to remove the attribute from the request when you no longer need it. Let's clean our junks... ;-)
    Hope this helps.
    Carlo

Maybe you are looking for

  • Outlook Express Address Book....is this the only one for PCs?

    Directed to any PC experts! I have two mail accounts on my iPhone 3G 1) a gmail account 2) an outlook express account (pop 3 server)- this is my main email address and i've had it for a long time. If i were to delete the outlook express email account

  • How to disable authentication window in abap

    Dear experts, My Requirement is need to send sms to cusomer mobile so i added fallowing code CONCATENATE      'http://112.110.32.178/login/pushsms.php?login=novire&pass=novire&mob_no='       V_TELF1      '&text='           V_EGP          INTO        

  • Single alert for error from multiple BPM call

    Hi all, we have following scenario (using BPM): IDOC -> XI -> sync web service ->XI-> IDOC. In case of WS failure (destination system is not answering) an alert should be triggered on XI. There is one customer restriction that the alert can be trigge

  • Sharing data among Application Modules & Sessions

    Hi, I have small BC4J application, which has around 5-6 application modules. One of those application modules is the entry point i.e. the client will first invoke the start method in that application module. This entry point application module will f

  • Import renaming default preference -- does it exist?

    I think the title says it all: auto renaming has now gotten me into trouble a few times.  I would rather forget to rename and have to do so later, rather than forget I did rename, which is when the dupe names start to pile up.  But I don't see a choi