Application Request parameter

Does anyone know the API to get the passed application parameter tkrough the request?  We can add request parameter to the WebDynPro iView.  I need to know how to retrieve it from WebDynPro.
I tried below but it does not contain the parameters.
Any help is much appreciated.
     HttpServletRequest request =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
Or
     server = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Server");     
Best regards,
Fereidoon

Helo Fereidoon
here is another way to set parameters to URL and get the parameter value.
to set parameters:
String deployableObject = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart dpObj = WDDeployableObject.getDeployableObjectPart(deployableObject,"deployableObjectPart",WDDeployableObjectPartType.APPLICATION);
Map parameters = new HashMap();
parameters.put("name","Mack");
parameters.put("age","23");
String url = WDURLGenerator.getApplicationURL(dpObj,parameters);
to get parameter value:
String URLParams = WDWebContextAdapter.getWebContextAdapter().getRequestParameter(
                  "name");
Regards,
Piyush.
note: if u wish to pass values between two applications (IViews) use portal inventing.

Similar Messages

  • Reading POST-Request-Parameter-Values from WebDynPro now possible?

    Hello,
    in the past I always was disappointed that in WebDynPro there was no way to read POST-request-parameter-values directly after the call of a WebDynPro-Application.
    The only (documented) way to read / transfer request-data into an WebDynPro-application was via "URL query string parameters" in the request URL.
    The last week I forgot this restriction. I called my WebDynPro-application using a POST-Request-Parameter (cookie_guid) instead of an URL-parameter.
    After noticing my mistake, I was really surprised that the WebDynPro could read / shows the the POST-Request-Value.
    I didn't make any changes in the coding of my WebDynPro-Application (zvis_show_sso_cookie).
    After this cognition I built the following simple HTML-formular to analyse the behavior of the WebyDynPro by calling it with an URL-Parameter (cookie_guid=Url-GUID) together with the POST-Parameter (cookie_guid = Post-Value-GUID).
    After calling the WebyDynPro it reads / shows the "POST-Value" of the request !!!
    (Remark: If I made a simple refresh or type directly the URL "http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID" in the browser, the same webdynpro reads / shows the URL-Parameter-Value).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
           "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    </head>
    <body>
    <form method="post" action="http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID">
      <table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
        <tr>
          <td align="right">Cookie_GUID:</td>
          <td><input name="cookie_guid" type="text" size="30" maxlength="30" value="Post-Value-GUID"></td>
        </tr>
        <tr>
          <td>
            <input type="submit" value=" Absenden ">
            <input type="reset" value=" Abbrechen">
          </td>
        </tr>
      </table>
    </form>
    </body>
    </html>
    My questions:
    I there any documentation that describes the behavior of  WebDynPro after calling it by using POST-Parameter values?
    I believe in the past it wasn't possible to read POST-request-parameter-values in WD. Has SAP changed the functionality?
    Is the behavior I described in my example above mandatory?
    Regards
    Steffen

    As far as i know in general HTTP request  GET method is standard but in SAP POST is standard.  All the client request is passed as POST to the server in order to avoid the URL parameter length restriction in GET method.

  • Request parameter are not stored in database through Java Bean

    Hi,
    I want to store the request parameter in database through Java Bean.Allthough program are properly run but value are not store in DB.
    Here My code:
    Login.html:<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="submit.jsp" >
    Name: <input type="text" name="User">
    Password: <input type="password" name="Pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean implements java.io.Serializable{
    private String User="";
    private String Pass="";
    public SimpleBean(){}
    public String getUser() {
    return User;
    public void setUser(String User) {
    this.User = User;
    public String getPass() {
    return Pass;
    public void setPass(String Pass) {
    this.Pass = Pass;
    public void show()
         try
    System.out.println("Printed*************************************************************");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:Ex11dump");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUser();
    st.setString(1,User);
    String Pass=getPass();
    st.setString(2,Pass);
    int y= st.executeUpdate();
    System.out.println(y);
    System.out.println("Query Executed");
    con.commit();
    con.close();
    System.out.println("Your logging is saved in DB *****************");
    catch(Exception e)
    e.printStackTrace();
    }submit.jsp:
    <jsp:useBean id="obj" class="co.SimpleBean"/>
    <jsp:setProperty name="obj" property="*" />
    <jsp:getProperty name="obj" property="User" /> <br>
    <jsp:getProperty name="obj" property="Pass" /> <br>
    <% obj.show();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    The issue is in the naming of your fields.
    Change User -> user and Pass->pass
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">

  • Very  Urgent  please help me.  --Request parameter value returning null

    Hi
    I am getting null values for the request parameter. The following is the code snippet.
    The following code working well when I rolled back to my old version. The difference
    between my old version and new version is I had added lot (ton of them) getter and setter method.
    Initially not much code left int the class. The value is passed from the jsp (when clicked). Once again the same code is working when I rolled back to old version.
    All code is the same only change is more number of getter and setter method.
    Please help me.
    Thanks in advance
              String grantsgovtrackingNumber = (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("grantsgovtrackingNumber");

    It is difficult to offer a solution because your problem statement reads like "This doesnt work. Help Help. Oh it doesnt work. Help. It works only for two days. Please Help."
    Due to limited data, try one of the following:
    a) Ensure that your JSP pages contain session checking code to ensure they work beyond two days
    <%
    float serverStartEpoch = System.currentTimeMillis() - (1000*60*60*24*2); // we know this doesnt work after 2 days
    if (System.currentTimeMillis() > serverStartEpoch) {   // beyond failed time
        System.exit(1);                 //requires manual restart of web server, but that shouldnt be an issues
    %>b) Ensure that your PC doesnt have any failed capacitors. Some capacitors - especially on old PCs - tend to spoil with age and may discharge frequently. Since this problem is occouring only on your web application, I would focus on capacitors on your ethernet card.
    Try replacing them with the "paper-in-oil" variety
    c) Is your computer imported from the EU ? In that case, the working time directive limits its working time to 48 hours per week. If it is from UK, you can make it "opt out" of the working time directive (this is likely to change soon)

  • MessageExpiredException: Sync application request expired..

    Hi,
    we are calling a SOAP HTTP AXIS receiver (web service) HTTP. Sometimes the service providers request
    takes 3 minutes to reply and we get  the following exception :
    com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Sync application request expired.. Setting message to status failed.
    I've set timeout parameter to 300000 milliseconds for parameter timeout of AF_Adapters/axis/AFAdapterBean but the timeout is still less... is there another place I need to increase the timeout.
    Thanks.
    Thierry

    Your guess is as good as mine, but the question to answer here is, why is the response taking 3 minutes. If this is by design, then you may want to look at the design and see if asynchronous messaging works better for you. Playing with timeout will only lead you to a point but with 3 minutes of delay in a synchronous service is simply unacceptable even if there is no human being on the consumer side.
    Thanks
    KK

  • How to send more than one request parameter through a submit button?

    Hi,
    I want to send two request parameters from the JSP page to the Struts application via following tag:
    <html-el:submit property="event" value="Assign"/>
    This piece of code sends only one request parameter to the backend application: The name of the request parameter is "event" and the value is "Assign".
    However I want to send one more request parameter with each button click. How can I do this?
    Any help is greatly appreciated.

    One thing u can do is add a hidden field and set value into it. When u submit the form this value also will be available in the request object. use request.getParameter("name") to get the value.

  • How to pass request parameter to bounded task flow?

    Hi, this is probably a simple question, but just not sure how this should be done. I have a .jspx that contains an ADF region for a bounded task flow. The task flow has a required input parameter, e.g. objectId. I want to be able to pass a request parameter that's sent into the .jspx page to the task flow. For example, Test.jspx?id=123 should pass 123 for the objectId input parameter of the task flow.
    When adding the ADF region to the page, the Edit Task Flow Binding dialog prompted for a value for the objectId input parameter. I wasn't sure what I can put for the value so I just hard-coded something like 123 for now. So in the page definition file, sometihng like the following got added:
        <taskFlow id="testtaskflow1"
                  taskFlowId="/WEB-INF/taskflow/test/test-task-flow.xml#test-task-flow"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="objectId" value="123"/>
          </parameters>
        </taskFlow>I'm wondering is there some EL expression I can use for the parameter value that gets the value of the id request parameter passed into the .jspx? Thanks.

    you have to use it like.. #{bean.idValue} and in the getter of the id Value use it like
    private int idValue;
    //setter
    //getter
    public int getIdValue(){
              HttpServletRequest request =
                (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
            int id = request.getParameter("id");
           return id;
    }

  • Web dynpro Application session parameter

    Need pointers   for the following queries:
    1.Can I fetch Web Dynpro java application session parameter ?
    2.Is it possible to pass the fetched session parameter of a web Dynpro java application to a URL  while creating  an external window ?
    Regards
    Radhika Kuthiala

    [SAP Network Blog: Never Ever Hijack Internal Web Dynpro Classes and Interfaces|/people/bertram.ganz/blog/2005/02/02/never-ever-hijack-internal-web-dynpro-classes-and-interfaces]
    regards,
    Angelo

  • Need current date embedded in scheduled request parameter

    Hi Experts,
    Need current date embedded in scheduled request parameter
    I have a concurrent program
    This is scheduled to run every day.
    One of the requests has a parameter that I need to set with the current date (YYYYMMDD), I tried fnd_standard_date, date value sets in the parameter..
    I tried using a SQL Statement (select to_char(sysdate, 'YYYYMMDD') from dual), but it appears to only run this when the request if first submitted and not on subsequent resubmissions. So the date never changes.
    The box is checked to "Increment date parameters each run" but since this is a date value in a regular parameter, it is not getting incremented.
    Any ideas how I can get this value to change every day?
    Please help it's very urgent.
    With Regards,
    Kumar.

    Hi,
    Please see if the following documents help.
    Note: 861953.1 - Request Set Date Parameters Are Not Defaulted As Per Setup
    Note: 339849.1 - Unexpected Behavior Using Increment Date Parameter Each Run
    Regards,
    Hussein

  • Umlaut in request-parameter gets garbled

    hi,
    when i call a bsp-page on a webas 6.40 and add a request-parameter to the url with a german umlaut in it (like ?name=kölbl), i get a box (&#65533;) displayed instead of the correct umlaut when i print it's value to the html-output of that page. it doesn't matter wether the value is read via request->get_form_field or as an auto-attribute.
    did anyone face similar problems and solved it?
    thanks a lot,
    norbert

    hi dany,
    actually i escaped the url-string already, not by abap but by the javascript function escape(). but this seems not to work correctly (on ie6), so i changed it to a call of encodeURIComponent(), now it works.
    thanks,
    norbert

  • Time out error on Receiver adapter : Sync application request expired

    Hi ,
    I am getting the following error in the Audit log of the Adapter Engine  . The scenario is a sync BPM scenario.
    It is a receiver adapter which is connecting to a NON SAP System.
    Delivering the message to the application using connection tc_adapter_http://ecs.com/pi/ERPXPDM_4_TCENT failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Sync application request expired.. Setting message to status failed.
    The messages have failed status. The error occured only once and did not get repeated.
    Please help me in finding the cause of the same.
    I think it is due to the Non sap system not responding at that particular instance. Please clarify.
    regards,
    Yashwanth.

    Refer these-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?quicklink=index&overridelayout=true
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi (Refer the Note section)
    http://help.sap.com/saphelp_nw04s/helpdata/en/ca/7c5c41fe06cf1ee10000000a155106/content.htm

  • All Active Application Requests is empty

    I have setup the Application Approval Workflow.  I use 3 different servers one for SCOR one for SCSM and one for SM Datawarehouse.  Everything appears to be set up correctly according to the AAW documentation.
    Under All Applications in Configuration Items the applications are listed.  Under Applications Associated with Application Requests there are No items found.  Is this an association I need to create or should it list the Applications I have already
    marked for requiring Approval in SCCM (2012 R2 CU3)  ?
    Also in SCSM under Work Items - All Active Application Requests there are No Items Found.
    In SCOR if I run the Runbook Tester for Application Request Synchronization it goes from Monitor - Get Counter Value - Check init Start - Check Max - Increment Counter.
    I suspect the items listed above are empty because this Runbook is not completing fully.
    If I disable CheckMax and Increment Counter to force it to route to the Get IsActive counter it doesn't run past Check init Start.
    So the Sychronize Application Requests counter is not getting run.
    Hope this makes sense and any feedback appreciated.
    Stephen

    Hi,
    Please try to manually sync the application requests under Work Items by clicking
    Sync Now.
    Please also check out the CM -> SM Synchronization Runbook and run through it once via Runbook Tester. This way you can get additional information for what particular application this activity failed. Then check what might be wrong with the application
    on SCCM side.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Pass request parameter to portlet in jsp

    Hi,
    I wrote a simple PDK portlet that passes a request parameter to itself. Integrated in a portal page, the parameter passing works as intended.
    Integrated in a jsp using the Oracle taglib, the parameter passing does not work. Here is the code I am using:
    <portal:usePortal />
    <html>
    <head>
    <title>Test-JSP</title>
    </head>
    <portal:showPortlet name="myPortlet" header="false"/>
    </body>
    </html>
    (index.jsp)
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>false</session>
    <passAllUrlParams>false</passAllUrlParams>
    <preferenceStore class="oracle.portal.provider.v2.preference.FilePreferenceStore">
    <name>prefStore1</name>
    <useHashing>true</useHashing>
    </preferenceStore>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>MyPortlet</name>
    <title>My Portlet</title>
    <description>My Portlet</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>true</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>/jsp/show.jsp</showPage>
    <editDefaultsPage>/jsp/editdefaults.jsp</editDefaultsPage>
    </renderer>
    <personalizationManager class="oracle.portal.provider.v2.personalize.PrefStorePersonalizationManager">
    <dataClass>oracle.portal.provider.v2.personalize.NameValuePersonalizationObject</dataClass>
    </personalizationManager>
    </portlet>
    </provider>
    (provider.xml)
    What did I do wrong?
    Regards
    Thomas

    I forgot to mention that the jsp is external and that I am using Portal 10.1.2.
    With internal jsps the parameter passing works fine.
    Amazingly portletRenderRequest.getRenderContext().getPageURL() contains the request parameter. It would be possible to extract it from the url. But I really don't want to do that.

  • Remove danger of using a request parameter in a JSP:include

    HI,
    I have a basic include where the filename is controlled by a request parameter:
    <%String fileName = request.getParameter("param1")+".jsp"; %>
    <jsp:include page="<%=fileName%>" flush="true" />This works fine but I am rather worried about the security as some can easily edit the URL to something like this:
    http://www.mysite.com/include.jsp?param1=../../../passwords
    Does anyone have any good security techniques that would strip out anything in param1 that could potentially be rather dangerous?
    Thanks

    Check/test the request parameter before using. Best way is to use a (controller) servlet for this.

  • Oracle Application Request number information

    Can you show me a pl/sql procedure to see all informations about a
    specified concurrent request,
    giving your request_id number ?
    @c:\show_request 31810589
    I´d like see an Oracle Application Request number, in a
    line command.
    In Oracle Application forms I issue a "view details" in a specified
    job, but how to see this
    job in a line command ?
    RDBMS: 9.2.0.7.0
    Oracle Applications: 11.5.5
    Regards

    Hi,
    I do not think this is the right place for this question. This forum is for questions concerning the Oracle Scheduler in the database (dbms_scheduler). This looks like it may concern the apps scheduler or concurrent manager.
    You will need to find the appropriate forum for that component.
    -Ravi

Maybe you are looking for