Getting parameters from URL: use of Special Chars

I'm unable to retrieve the Special Chars from URL parameters.  Does someone have an idea where to look for?
Examples where no Special Chars is retrieved :
...App?param=Aménagement
...App?param=Am<é>nagement
...App?param=Am%E9nagement
I'm using this code :
          IWDProtocolAdapter protocolAdapter =
               WDProtocolAdapter.getProtocolAdapter();
          IWDRequest request = protocolAdapter.getRequestObject();
                                String param = request.getParameter("param");
Thanks!

okay, So if I use :
...App?param=Am%E9+nagement
How would you then integrate URLDecoder.decode in the following code?
IWDProtocolAdapter protocolAdapter =
     WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String param = request.getParameter("param");

Similar Messages

  • How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?

    Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
    eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
    I've google for help and not sure they seem working so far.

    Hi,
    If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
    three filters like:
    date is greater than [PageQueryString:DateFrom]
    And
    date is less than [PageQueryString:DateTo]
    And
    type is equal to [PageQueryString:Type]
    Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
    Please reply freely if I misunderstand your meaning or there any other questions.
    best regards
    Patrick Liang
    TechNet Community Support

  • Getting parameters from text and file input tag. .  canyou help me ?

    Hello!
    Is there anyway of getting parameters from an
    text field input in a form like :
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of an file
    on the same form. It is something likethis :
    Form.jsp
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >   
    <input type="text" id="name" name="signinName" />
    <input name="signinFile" id="fileUp" type="file" />   
    <input type="submit" id="submit_btn" name="signinSubmit"/>uploadingFile.jsp
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
    .//upload the file
    String email = request.getParameter("signinName").trim(); //this line is bringing me an NullPointerException
    %>Thanks in advance for any suggestion!!
    All the best!

    You cannot use the HttpServletRequest object to retrieve parameters from a multipart form. You'll have to use a package that can parse such a form. I suggest Apache commons FileUpload.
    http://jakarta.apache.org/commons/fileupload/
    Using this package you can get both the file upload and any other parameters.

  • Passing parameters from URL to multiple iViews on a page.

    Hi Everyone,
    Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki).
    Thanks!
    Indy

    Hi Indy,
    Currently, passing parameters to the page which contains VC iViews is not supported, only directly in the iView's URL.
    Regards,
    Natty

  • I got an android, turned off my imessage on my iphone and deactivated the iphone through apple support but I still don't get messages from people using iphones.  What's wrong?

    I got an android, turned off my imessage on my iphone and deactivated the iphone through apple support but I still don't get messages from people using iphones.  What's wrong?

    Go ahead and call AppleCare at 1-800-692-7753 and ask them to revoked your certificate

  • Getting the parameters in url using cfgrid to cfc....

    please help!!!
    passing parameters to cfc using the cfgrid bind...
    im using the cfc bind if u hard coded the query in the cfc its works but if u need to pass a parameters in cfc bind its not working...
    for example...
    my url with parameter is http://localhost/index.cfm?empid=123&start_date=2009/05/01
    <cfform>       
                <cfajaxproxy bind="javascript:todetail({maingrid.id@change},{maingrid.firstname@none},{maing rid.lastname@none})" />
                <cfgrid format="html"
                    name="maingrid"
                    bind="cfc:#request.cfcpath#users.getGridas({cfgridpage},{cfgridpagesize},{cfgri dsortcolumn},{cfgridsortdirection})"
                    preservepageonsort="true"
                    appendkey="no"           
                    selectonload="false"
                    width="750"                           
                    style="clear:both;" colheaderalign="center"
                    >
                    <cfgridcolumn name="id" display="no" />
                    <cfgridcolumn name="datatime" header="DATE" width="100"/>               
                </cfgrid>
            </cfform>
    my query in cfc file:
    select * from hrd_emp
    WHERE 0=0
                <cfif arguments.id NEQ "">AND (id='#arguments.id#')</cfif>
                <cfif arguments.whereClause NEQ "">AND (#preserveSingleQuotes(arguments.whereClause)#)</cfif>
                AND (EmpNo = '#######')   =====> i need to put the empid=123 from the url  http://localhost/index.cfm?empid=123&start_date=2009/05/01
    PLEASE HELP!!!

    Pam, here's how I solved this one. Note the order of the bindings and the order of the bindings in the CFC must be the same as well. Hopefully this helps:
    <!--- create cfgrid with results from url.CFGRIDKEY variable --->
    <cfform name="getUsers">
           <cfgrid format="html" name="displayUsersActive" autowidth="yes" selectmode="row" striperows="yes" pagesize="13" bind="cfc:getUsers.SPActiveUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgrid sortdirection},'#url.CFGRIDKEY#')" width="700" height="360">
                <cfgridcolumn name="intfkclassid" display="no">
                <cfgridcolumn name="txtLName" header="Last Name" headerbold="yes" width="20">
                <cfgridcolumn name="txtFName" header="First Name" headerbold="yes">
                <cfgridcolumn name="startdate" header="Start Date" width="30" headerbold="yes">
                <cfgridcolumn name="enddate" header="End Date" headerbold="yes">
                <cfgridcolumn name="classno" header="Class No" headerbold="yes" hrefkey="intfkclassid" href="allEnrolled.cfm" >
            </cfgrid>
        </cfform>
    <!--- getUsers.cfc ----------->
    <cfcomponent>
        <!--- METHOD: List Active users method --->
        <CFFUNCTION NAME="SPActiveUsers" access="remote" RETURNTYPE="struct">
            <cfargument name="gridpage" type="numeric" required="true" />
            <cfargument name="gridpagesize" type="numeric" required="true" />
            <cfargument name="gridsortcolumn" type="string" required="true" />
            <cfargument name="gridsortdirection" type="string" required="true" />
            <cfargument name="cfgridkey" required="false" type="string" default=""/>
         <cfif arguments.gridsortcolumn eq "">
                <cfset arguments.gridsortcolumn = "txtLName" />
                <cfset arguments.gridsortdirection = "asc" />
            </cfif>
             <!--- get user's info --->
                 <cfquery datasource="#application.dsn#" name="getUsers">
                        select a.intuserid,
                                a.txtFname,
                                a.txtLname,
                                b.intfkclassid,
                                c.intclassid,
                                convert(varchar,c.dtstartdate,106) as startdate,
                                convert(varchar,c.dtenddate,106) as enddate,
                                right('00' + convert(varchar,c.intclassyr),2) + '-' + right('00' + convert(varchar,c.intclassno),2) as classno,
                                c.intclassNo,
                                c.intclassyr
                        from tblusers a, tblenrollment b, tblclasses c
                        where a.intuserid = b.intfkuserid and
                                b.intfkclassid = c.intclassid
                                <cfif arguments.cfgridkey NEQ "" and isnumeric(arguments.cfgridkey)>
            and c.intclassid = #arguments.cfgridkey#
                                <cfelseif arguments.cfgridkey NEQ "" and arguments.cfgridkey EQ "active">
                                and c.blnIsActive = 1
                                <cfelseif arguments.cfgridkey NEQ "" and arguments.cfgridkey EQ "inactive">
                                and c.blnIsActive = 0
                                <cfelse>
                                and 1 = 1
                                </cfif>
                        order by #arguments.gridsortcolumn# #arguments.gridsortdirection#
                        </cfquery>
              <CFRETURN queryconvertforgrid(getUsers, gridpage, gridpagesize)>
        </CFFUNCTION>
    </cfcomponent>

  • Extracting parameters from URL for forms 6i

    Is there a way to get the portal logged in user
    in a 9ias forms 6i web form. Also if I pass user-defined
    parameters through a link to forms 6i is there a way
    I can extract these parameters from the URL and get
    forms 6i to read them?
    Any ideas will be greatly appreciated.
    Thanks,
    Suzanne

    Hi Suzanne,
    all that you need to do is parse the url string
    It is made up of:
    ?[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    &[Parameter Name]=[Parameter]
    I have some code that converts a url string into a form and then submits the form.
    you could use this as a base to work from.
    Regards Michael
    CREATE OR REPLACE PROCEDURE FORWARD_TO_URL_P (P_URL IN VARCHAR2) IS
         vParameter VARCHAR2(4000);
         vValue VARCHAR2(4000);
         vProcedure VARCHAR2(1000);
         vString VARCHAR2(4000);
         vLength NUMBER(10);
         vQ VARCHAR2(4) := '?';
         vE VARCHAR2(4) := '=';
         vA VARCHAR2(4) := '&';
    BEGIN
         htp.p('<HTML><HEAD><TITLE>ASP 3</TITLE>');
         htp.p('<META HTTP-EQUIV="PRAGMA" CONTENT="No-Cache"></HEAD><BODY bgcolor="#f1f1f1">');
         vString := p_url;
         IF INSTR(vString, vQ) > 0 THEN
              vProcedure := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
              vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
         ELSE
              vProcedure := vString;
         END IF;
         vQ := vA;
         htp.p('<FORM METHOD=POST action="' || vProcedure || '">');
         WHILE NVL(INSTR(vString, vE), 0) > 0 LOOP
              vParameter := SUBSTR(vString, 1, INSTR(vString, vE) - 1);
              vString := SUBSTR(vString, INSTR(vString, vE));
              IF INSTR(vString, vE) = INSTR(vString, vE, -1, 1) THEN
                   vValue := SUBSTR(vString,vLength+1);
                   vString := '';
              ELSE
                   vString := SUBSTR(vString,vLength+1);
                   vValue := SUBSTR(vString, 1, INSTR(vString, vQ) - 1);
                   vString := SUBSTR(vString, INSTR(vString, vQ) + vLength);
              END IF;
              htp.p('<INPUT TYPE=hidden name="' || vParameter || '" Value="' || vValue || '">');
         END LOOP;
         htp.p('</FORM>');
         htp.p('<SCRIPT>');
         htp.p('document.forms[0].submit();');
         htp.p('</SCRIPT>');
         htp.p('</BODY></HTML>');
    END;

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • Getting parameters from multipart request

    I'm using org.apache.tomcat.utils.fileupload to parse uploaded files from a multipart form, but unfortunately I can't seem to get normal parameters from such a form with request.getParameter(). Is there a way to use both together?

    You might already have solved your problem, but you may find this MultipartFilter useful too: http://balusc.blogspot.com/2007/11/multipartfilter.html
    It automatically detects multipart/form-data requests and sets the plain vanilla form parameters back in the ParameterMap of the HttpServletRequest and sets the files as attributes of the HttpServletRequest. This way there is no need to worry about the form encoding type inside the servlet.

  • How to run a project which gets parameters from a batch file

    Hello all,
    I use to run a program, which gets parameters only by interactive mode, using a batch file as you can see below:
    # myprogram < batchfile.txt
    Now, I'm updating its code by SunStudioExpress IDE and I'd like to run it from the batchfile. I have noticed that the project properties window has the option run -> arguments, however this program doesn't accept arguments this way and for changing it, I'd have a hard job.
    Does someone know how to run this project and to get its parameters from batchfile?
    Regards,
    Glauber

    Ah, it appears that when you run the project, "<" is passed as one of the arguments and is not treated as input redirection.
    Sorry, it looks like it is not possible to do the redirection; and it looks like a bug to me. Could you please file it through bugs.sun.com? It shouldn't take long as the problem is evident now.

  • Extract the data from URL using XI

    Hi,
    Please let me know if  you have idea  about this:
    Scenario is:
    1. We are extracting some raw data (strings) from one url(http) using java program ...
    2. After extracting the data , some parsers making the XML files for that.
    Now my question is :
    Will able to add these javacalsses(java program) into XI for trigger the messages from url?
    It means I need to call url through XI and make the xml for that. After getting XML we need to map RFC for process the messages into ZTable.
    I didn't get idea about  how to make call for url through XI. It would be appreciated for sharing your expereince on this..
    Regards...Raj!

    Hi,
    >>>>Will able to add these javacalsses(java program) into XI for trigger the messages from url?
    yes you can do it all in a java proxy
    you just have to invoke a java proxy
    and inside you can put any java code you wish
    then you can use the parser and fill the xml message
    >>>>It means I need to call url through XI and make the xml for that. After getting XML we need to map RFC for process the messages into ZTable.
    then you can map your xml message to an rfc format
    if you have the java classes that access
    the url this will be very easy with a java proxy
    for more:
    https://websmp206.sap-ag.de/~sapdownload/011000358700000877852006E/HowToWorkWithJavaProxies.pdf
    Regards,
    michal

  • OSB - Load Resources From URL using proxy

    Hi all,
    How does one force the OSB to use a proxy server when using the Load Resources From URL option?
    I'm trying to create a wsdl resource from an url, but the OSB needs to use a proxy to access the url.
    I've tried creating a Proxy Server under System Administration -> Global Resources -> Proxy Servers, but I can't seem to find a place to make it use a proxy server?
    How do guys and gals get wsdl files though a proxy?
    Thanks!
    William

    Hi Milan,
    Thanks for your reply.
    I tried setting -Dhttp.proxyHost=12.34.56.78 -Dhttp.proxyPort=80 in the startWebLogic.cmd file under the ...\domain\bin folder. But still can't download the wsdl.
    Where did you set the property?
    thanks again,
    William

  • Download file from URL using ADF (urgent help required)

    We have the following requirement:
    On clicking a button we need to download the file present at a particular location(we have the URL).
    I have written the following in .jspx file :
    <af:commandButton  id="btn1" >
                        <af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
    </af:commandButton>
    The corresponding method in bean is :
    public void getFile(FacesContext facesContext, OutputStream outputStream) {
    HttpServletResponse response = null;
    ServletOutputStream ouputStream = null;
    currUrl = getFileURL("ID", 281);
    response =
    (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
    try {
    ouputStream = response.getOutputStream();
    ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
    ouputStream.flush();
    ouputStream.close();
    } catch (IOException ioe) {
    System.out.println("IO Exception");
    public byte[] getFileBytes() {
    URLConnection urlConn = null;
    InputStream iStream = null;
    URL url;
    byte[] buf;
    int byteRead;
    try {
    url= new URL("http://hjhj:34104/test.pdf");
    urlConn = url.openConnection();
    iStream = urlConn.getInputStream();
    buf = new byte[5000000];
    byteRead = iStream.read(buf);
    if (byteRead > 0) {
    System.out.println("Downloaded Successfully.");
    return buf;
    } catch (FileNotFoundException fnfe) {
    System.out.println("File not found Exception");
    fnfe.printStackTrace();
    } catch (Exception e) {
    System.out.println("Exception:" + e.getMessage());
    e.printStackTrace();
    } finally {
    try {
    iStream.close();
    } catch (IOException e) {
    System.out.println("IO Exception");
    e.printStackTrace();
    System.out.println("File");
    return null;
    The file is opening in same window but in some encrypted format. My requirement is to :
    1. Have a pop (as in Mozilla or IE) which asks if I want to save the file or open.
    2. Depending on that the file should be opened in pdf format and not in browser same window neither in browser tab.

    Jdev version : 11.1.2.1.0
    in .jspx file : we have a button. On clicking the button file from URL should be downloaded. I have used fileDownloadActionListener in commandButton. Corresponding code :
    <af:commandButton  id="btn1" >
                        <af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
    </af:commandButton>
    in bean class : the method corresponding to fileDownloadActionListener is :
    public void getFile(FacesContext facesContext, OutputStream outputStream) {
         HttpServletResponse response = null;
         ServletOutputStream ouputStream = null;
         response =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
         try {
              ouputStream = response.getOutputStream();
              ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
              ouputStream.flush();
              ouputStream.close();
              } catch (IOException ioe) {
                   System.out.println("IO Exception");
    public byte[] getFileBytes() {
         URLConnection urlConn = null;
         InputStream iStream = null;
         URL url;
         byte[] buf;
         int byteRead;
         try {
              url= new URL("http://hjhj:34104/test");
              urlConn = url.openConnection();
              iStream = urlConn.getInputStream();
              buf = new byte[5000000];
              byteRead = iStream.read(buf);
              if (byteRead > 0) {
                   System.out.println("Downloaded Successfully.");
              return buf;   
        } catch (FileNotFoundException fnfe) {
              System.out.println("File not found Exception");
         } catch (Exception e) {
              System.out.println("IO Exception");
    The URL given in the code is for a file which can be a PDF file or an EXCEL file.
    My requirement is when i click the button:
    1. A pop should come (as in Mozilla or IE) which asks if I want to save the file or open.
    2. if i click on save file should save in a particular location.
    3. if i click on open it should open as PDF/EXCEL format and NOT in browser.
    Message was edited by: 1001638

  • Help needed with variable - trying to get data from Oracle using linked svr

    Sorry if I posted this in the wrong forum - I just didn't know where to post it.
    I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
    Here's how I would get the variable in SQL:
    declare @maxkey INTEGER
    select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
    select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
    the select statement I need to do in oracle would use that variable like this:
    select * from OPENQUERY(OracleLinkedServer,'select
    * from ORACLEDB.TABLE where keyfield > @maxkey')
    and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
    I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

  • How to get data from Oracle using Native SQL in SAP.. Problem with date

    Hi Masters.
    I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
    I wrote this code and it works fine without the statement of where date > '01-09-2010'
    But i need that statement on the select. I read a lot about this issue, but no answer.
    My code is (this code is in SAP ECC 6.0)
    DATA: BEGIN OF datos OCCURS 0,
          id_numeric(10),
          component_name(40),
          comuna(10),
          record_id(10),
          status,
          sampled_date(10),
          END OF datos.
    DATA: c TYPE cursor.
    EXEC SQL.
      connect to 'LIM' as 'MYDB'
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION 'MYDB'
    ENDEXEC.
    EXEC SQL PERFORMING loop_output.
      SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
      into :datos from lims.SAMP_TEST_RESULT
      where     date > '01-09-2010'
    ENDEXEC.
    EXEC SQL.
      disconnect 'MYDB'
    ENDEXEC.
    How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
    Any help
    Regards

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

Maybe you are looking for