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 (�) 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

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.

  • 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;
    }

  • 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">

  • 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

  • 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)

  • 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.

  • 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.

  • Dont wanaa show request paramets in url

    hi
    i m new to this technology and have developed and deployed Hello example in the sun tutorial successfully :)
    now my issue is i dont want to show the request parameter name / value pair in the response.jsp url ... i.e (...response.jsp?name=rhtdm)
    any help regarding this is highly appreciated.

    Use 'POST' instead of 'GET' as the method attribute of your form. And read up on HTTP basics first, that'll cover all this.

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • 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.

  • How to pass the dynamic request parameter value $fieldName:IsSelected for framework folder service FLD_PROPAGATE?

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

  • Request parameter of Web Service Data Control shows up as an Object

    I have deployed a simple web service on a peoplesoft instance.
    The request message is:
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="SSR_CLASS_SEARCH_REQ">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="INSTITUTION" type="xsd:string" nillable="true"/>
    <xsd:element name="TERM" type="xsd:string" nillable="true"/>
    <xsd:element name="CAREER" type="xsd:string" nillable="true"/>
    <xsd:element name="SUBJECT" type="xsd:string" nillable="true"/>
    <xsd:element name="CLASS_NBR" type="xsd:int" nillable="true"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    While the response message has a depth of three levels:
    In jdev 11g (Studio Edition Version 11.1.1.1.0, Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) the one available for download on OTN, I perform the following steps.
    Create a Web Service Data control using the WSDL url, generated from the PSFT end.
    The Data control creates successfully. The problem is:
    - In the service operation method (in the data control) the request parameter is shown as an Object.
    - The entry under the service operation parameter tree, is 'paramater'
    The data control looks like:
    - <datacontrolname>
    - <serviceOperationName>_parameters
    - parameter
    - CAREER
    - CLASS_NBR
    - INSTITUTION
    - SUBJECT
    - TERM
    - <serviceOperationName>(Object)
    - Parameters
    - parameter
    - Return
    - <Return type>
    The return type shows up fine, with collections in hierarchy of a depth of tree.
    How do I create a parameter form for this data control.

    Hi,
    In this usecase , you can DnD the <serviceOperationName>_parameters as an ADF from. Then DnD the operation as a method. The methods input arg value is automatically set to the parameterIterator.currentRow.DataProvider. This works fine.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • PSA Request not getting updated to DSO during Delta DTP

    Hi All,
    Came across a situation. There are 7 requests in the PSA and they are loading to a DSO through Delta DTP (no other settings checked). Now when we tried to acivate the DSO request it failed saying that one of the PSA requests is having SID older than the one you are trying to load now.
    We checked the data mart status of this PSA request and found that it is not moved to the DSO during the delta load.
    What we suspect is that somebody loaded that request enabling the DTP setting 'Only Get Delta Once' but not sure. Now we are looking answers for below queries.
    1. What could be possible reasons for this?
    2. How to confirm if somebody already loaded the request through 'Get Delta Only Once' setting?
    3. What are possible options to get the data from that PSA request other than a full load from source system or PSA?
    regards
    Jitendra

    hey Jitendra,
    The possible reason for this might also be that someone deleted the request from DSO after is was loaded?
    You can manually post the request into your target DSO by using "update with scheduler" option for individual PSA requests.
    If you do not want these requests in DSO, you should turn them to red in data load monitor and proceed with activation.
    Hope this helps!
    Thanks,
    Sheen

Maybe you are looking for

  • Connection pooling and auditing on an oracle database

    Integration of a weblogic application with an oracle backend, Connection pooling, and auditing ,2 conflicting requirements ? Problem statement : We are in the process of maintaining a legacy client server application where the client is written in Po

  • I set up everything I'm supposed to and all I get in no signal on my tv after I changed my input to HDMI 2 and plugged my apple box in? Why am I having so much trouble, anyone?

    I set up my HDMI cable to my compatible tv, plugged it into my apple box, plugged the apple box to a power source then, then took my tv input changed it to the proper HDMI input and I get nothing but "no signal". The light on the box flashes when I f

  • In smartform address element ?

    hi guru's.               i am doing purchase order smartform in that address window displaying like this                                The Post Office                                Post Office Headquarters                                33 Grosveno

  • SQL Performance reports

    Hi, We have a Windows Server 2008 R2 Std, with SQL Server 2008 R2 SP2 CU 0. 32GB memory and 2x2GHz 16cores. We can see that the sqlservr.exe is taking almost all memory, and i guess that is ok since we have not configured any restrictions, and then S

  • Short cut problem? Can it be implemented by using PL/SQL?

    I am an oracle fan from China. This is the first message I published on the forum. Thanks your kindness. Now, We are faced with a problem of the shortest roadsect problem. The table has such columns: startcrossingid, endcrossingid, roadsectid, roadse