Does CF really auto-decode URL parameters passed to a page?

CF docs and livedocs state that:
quote:
ColdFusion automatically decodes URL parameters that are
passed to a page
(for example, see the URLEncodedFormat tag description, last
sentence of opening paragraph)
However, if you have a url-encoded url parameters, as in
?var1=1%26var2=2 (%26 is url-encoded equivalent of &), and in
your page you try to validate url parameters with <cfparam
type="integer" name="url.var1"> or with isvalid("integer",
url.var1) function, the validation will fail! Apparently, inside at
least this tag and function Cf does not automatically decode url
parameters... it sees the var1 declaration, but sees its value to
be not 1, but 1&var2=2, which surely fails validation against
type "integer"....
This behaviour has been brought up in these forums several
times now, but nobody has been able to explain how this relates to
the CF docs statement... Any ideas, anyone? Is this an expected
behaviour? Are the docs wrong? Does 'parameter', as in "url
parameters", refer only to specific parts of query string and does
not include url var name/value pairs separator? Apparently the same
happens if you have "=" sign url-encoded, too...

I will have to think on this, do some reading and try some
experiments.
But my first thought is that this is expected behavior. I
would
propose the purpose of URL encoding the ampersand(&) is
so that it will
be considered a part of a value, not its usual role of
name-value pair
separator. So in my mind this is the way it is supposed to
work.
val1=1&val2=2 : val1 is 1 and val2 is 2
val1=1%26var2=2 : val1 is '1&var2' or '1&var2=2'
I will have to explore this further.

Similar Messages

  • How to know the parameters passed between the pages

    Hi , am working on the customizations.
    Can anybody tell me how to know the parameters passed between the pages in OAF.
    Thanks a lot in advance.
    regards
    kumar

    U can read
    Framework ToolBox Tutorial Lesson 2, Part 4: Page-to-Page Communication
    in this path
    <<your OAF folder>>jdevdoc\WebHelp\toolbox\510\lessons\lesson2_pagecom.htm
    OAPageContext
    PutEncryptedParameter( )
    GetDecryptedParameter( )
    OAPageContext (called from UI client)
    putTransactionValue( )
    getTransactionValue( )
    removeTransactionValue( )
    OADBTransaction (called from server)
    putValue( )
    getValue( )
    removeValue( )
    OAPageContext (called from UI client)
    TIP the Framework expects to introduce methods for managing session data from the server at some point in the future.
    putSessionValue( )
    removeSessionValue( )
    getSessionValue( )
    Good luck !

  • Passing URL parameters to PL/SQL Pages

    Hi,
    I want to pass parameters from url to the PL/SQL page . How is this possible?
    http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
    I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
    Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
    Many Thanks
    Ganesh

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • Creating a Tabular Form based on Input Parameters passed from another page?

    Hello,
    APEX version 3.2
    DB version 9.2
    Internet Explorer 6
    I created a tabular form, but do not want to return all the records from the table.
    Is it possible to create a parameter page for the user to enter a string of values that will be submitted to create a tabular form, only displaying those records from the table?
    Thanks.

    Why not use an instr with your data in a bind variable in your where clause for the select?? Page 1 sets an item called P2_Parameter with your value string slightly modified ('12345','345632','645534534','3434344')
    Select a,b,c,d,e from some_table where INSTR(TO_CHAR(Lookup_column,'099999999'),:P2_Parameter)
    Maybe that will work? Its off the top of my head, but should get you what you want.. (But to agree with one of the other posters, it is a BAD Design..) I would try like an interactive report to allow them to enter in acct #'s or whatever these are and let them access the rows that way..
    Thank you,
    Tony Miller
    Webster, TX

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • Pass aprameters between pages

    Hi,
    I have HTML DB form calling a complicated report (in Oracle reports).
    Oracle reports takes in about 50 parameters.
    Each parameter is represented in the form by a list manager or a select list.
    I want to design the form in such a way that the items are spread among different tabs/pages on the form and finally call Oracle report for all these parameters passed through different pages.
    Could any one help me figure this out? Thanks,

    &gt; I have multiple select as one of the item in page 1. In which case,
    &gt; these values are stored in the database.
    Well, if they are on an HTML DB page, as a result from a DML or SELECT operation, then you can reference their value in HTML DB.
    &gt; Then, I can't pass these parameters directly between pages,
    &gt; right? Is querying directly from the database the only option?
    I'm a little confused here, as I think you may be overcomplicating how HTML DB works a bit.. An HTML DB item can have a number of different sources - one of which is from a database column. If you are intending on updating previously committed data, then you would need some sort of process to fetch the data into the HTML DB items.
    If you are using this as a "wizard", and want the user to select 100 different options then commit, you don't need to directly commit your transaction until the user clicks on the "save" button. Every item's value is automatically stored in session state by HTML DB; that's what you can reference from any other page.
    Hope this helps,
    - Scott -

  • How to read url parameters from a decoded string

    Hi,
    Normally if I pass on a url string
    test.cfm?name=abc&num=8, I can do url.name and url.num
    to get the url parameters. But what if the url string is decoded by
    javascript escape() function? The above url string becomes
    test.cfm%3Fname%3Dabc%26num%3D8
    How can I read url.name and url.num from this string?
    Thanks!
    Min

    Escape is not really meant for urls because it encodes the
    delimiters: ? &
    http://www.w3schools.com/jsref/jsref_encodeURI.asp
    http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp

  • Trouble Passing URL Parameters between Applications

    Hi All,
    I am having trouble Passing URL Parameters between Applications for BW queries as data sources. I know I am getting the data from the sending application correctly, because I an printing to the screen using a Text Component.
    Date From: 1/1/2008
    Date To: 3/14/2014
    Here is the code from the sending application On Select :
    "http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    + DS_1.getVariableValueExt("ZPORDAT3") +
    + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilter("0CALDAY",[Xv_DateFrom, Xv_DateTo]);
    When I click the results of the sending Application the popup window opens for the receiving application but I get all the records for the BW receiving query, it does not restrict to the values in ("ZPORDAT3") 1/1/2008 and ("ZPORDAT5") Date To: 3/14/2014.
    So, I would expect it is my receiving code, but I am not sure.
    Hope you can help?
    Norman

    Hi Norman,
    As Jörg said, please put "&" before each of your variable names at your url. For the second part,I didn't try it for date intervals but keep in mind just in case:
    APPLICATION.openNewWindow("http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    "&Xv_DateFrom=" + DS_1.getVariableValueExt("ZPORDAT3") +
    "&Xv_DateTo=" + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilterExt("0CALDAY", {"low": Xv_DateFrom , "high " : Xv_DateTo});
    Best regards,
    Onur

  • Passing Values to URL Parameters in HTTP Connection SCOT

    Hi ,
    I have created a new node in SCOT as HTTP. In that i am using one URL as HTTP Connection , for that URL have to pass some input values ( eg: User name , password ). Right now i am hardcoding these values in the URL, But i need to pass these input values to the URL dynamically. Is there any way to pass the values to the URL parameters .
    Regards
    Bala..

    Hi Bala,
    Did you ever get this resolved? I have a similar requirement but still cant find a way to do it. I even thought about creating an RFC Destination of type H and entering the user name and pwd in the logon details. But the problem wih this is that the URL for the RFC destination is static and cant really be changed.
    Be interested to hear your thoughts.
    Alon

  • HTTP reciever adapter pass URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    Can anybody help wwith this please?
    Thanks
    Karthik

  • Passing URL parameters to WD app in URL IView

    Hi experts,
    I'm using EP 7.2 and as I found out this version doesn't support Web Dynpro Java iview template so I'm using URL iview template for my Web Dynpro Java application. My requirement is to somehow pass some URL parameter (which is id for something in my app) to the WD app in the URL iview. So in this scenario setting the URL parameters and their values during design time for the iview is not suitable. I tried DynamicParameter=id%3D154 for example but it doesn't work. Do someone has any ideas to solve this problem? Any help will be appreciated.
    Regards,
    Martin
    Edited by: musaka on Oct 27, 2009 1:12 PM

    Hi Musaka,
    If i am not mistaken, your requirement is to display a URL iView to user with some parameters (contained within the Address Bar of the Browser) to be passed to the iView. Initially as no parameter value can be defined on previewing the iView or opening the iView, no value is passed to iView. But in case, when you directly enter the Parameter Values against Parameter Names in Address Bar and then say go, the page should reload and pick the parameter values from URL in Address Bar instead.
    Steps to follow:
    1. Put     CustomerId=0&RequestId=0            in the Application Parameter property of the URL iView.
    2. Put the following lines of code in the wdDoInit() in the implementation tab of the View Controller to retrieve and use the passed parameter value in the View of the application and then say Organize Imports from the context menu.
    int customerId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("CustomerId");
    int requestId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("RequestId");
    Please revert in case of any issue.
    Regards,
    Tushar Sinha,
    Infosys Technologies Limited,
    Hyderabad,
    India
    Edited by: tushar sinha on Oct 29, 2009 10:51 PM

  • Live view doesn't correctly pass URL parameters from HTML docs?

    Running into something that I wonder if anyone else has seen.  I've created a site in DW CS5 with a local testing server (XAMPP on Win7), and if I use LiveView to view an HTML page that has a link to a PHP page that includes a URL parameter, the parameter shows up in the LiveView address bar, but the page doesn't seem to use it (trying to display an image where the file is built using $_GET to retrieve the parameter).  The same HTML page, displayed in a browser, works.  And if I then save the HTML page as a PHP page in DW, identical code, LiveView works.  Sure looks like LiveView will does not properly handle URL parameters from HTML documents...

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

  • Pass URL parameters to parent window, which is not in VC

    Hi,
    I developed a web application which is calling a VC iView in a new browser window, now I have the problem that I have to pass back URL parameters to the parent window. Is there any possibility to use JavaScript or is there some other solution?
    Thanks fpr your help.
    Kind regards,
    Timo

    Hi Mario,
    thanks a lot for your answer. If I understand correctly your solution works only if the other web application in the parent window is also located in the portal, unfortunately my web application is outside the portal.
    Is there a solution for this, or should I look for something else than using Visual Composer?
    Kind regards,
    Timo

  • Passing URL parameters to WD application

    Hi!
    To pass URL parameters to WD application I currenly inbound plug 'defauld' (of type 'Startup') of main window. I use following code:
    types:
        begin of param_t,
          name type string,
          value type string,
        end of param_t.
      data: params type standard table of param_t.
      data: param like line of params.
      wdevent->get_data(
        exporting
          name = '_ALL_URL_PARAMETERS'
        importing
          value = params
    It works fine but this plug is called after init methods of the component controller an of the view. So if I want to do something with parameters, I must do in this plug.
    Is there way to pass URL parameters in a WD app. so that they were available from the very beginning of the application work i.e. in init method of the component controller etc.?
    Thanks!

    I had the same requirement too. There are a couple of threads on the subject as well, I've posted in one of them but had no answer:
    Re: Read URL Parameters programmatically
    The workaround i've used is this, it's definitely not as neat as I would like to since you end up having two initialization methods per controller, WDDOINIT and the one you create (for each controller you want to run code in using the received parameters). Nevertheless, it works:
    1) Create an event in your component controller, for example INIT_COMPLETED.
    2) Define a new method in your component controller, e.g. INIT_AFTER_WINDOW. This method receives an Importing parameter TYPE tihttpnvp. It uses this received HTTP parameters for the initialization logic and finally raises the INIT_COMPLETED event (This is the method that "replaces" WDDOINIT).
    3) In the Window's Inbound plug handler, you get the HTTP parameters (with wdevent->get_data) and afterwards call the method WD_COMP_CONTROLLER->INIT_AFTER_WINDOW (maybe you need to declare the usage previously in the Window to have the reference available).
    4) Finally, if you need some of the Views to be initialized afterwards the component controller's INIT_AFTER_WINDOW runs (for example to show some initialization messages), you'll have to replace the WDDOINIT method with an INIT_AFTER_COMPCTRL method and subscribe it to the component controller's INIT_COMPLETED event.
    I hope you got the idea, and more importantly, that we get some cleaner solution from SAP for achieving this in the future.
    Regards
    Edited by: Alejandro Bindi on Nov 6, 2008 10:08 PM
    INIT_AFTER_WINDOW is the method to be called on step 3

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

Maybe you are looking for

  • Hyperlink in an entry

    In my Calender appointments or entries can I insert a hyperlink in the text?

  • K7n2d Ram or Psu?

    Well I've read all of the trouble shooters 101 and ran around through buying the right psu and memory threads.  But I'm not really sure if this isn't a mobo issue rather then one of the aboce. I've got: amd xp barton 2500+ Kingmax 512 mb ddr 333 KDL3

  • Raising exceptions in function module

    I am writing a coding inside the userexit. The call customer function has 'exception' parameters like below:          EXCEPTIONS            IDOC_ERROR          = 1            DO_NOT_PROCESS_IDOC = 2            OTHERS              = 3. Now, I want to

  • Back ground job: Spool as a attachment in mail

    Hi, A mail should be sent to the user in the distribution list on compleiton of the background job of a program. Along with that, the spool need to be sent as an attachment. Please let me know the steps involved in triggering a mail after completion

  • How to make a population pyramid on Reporting Services 2012

    Hi,  I am trying to make a population pyramid and can't figure out how.  I have already looked on the web and found one link (Age Pyramid), unfortunely it uses a tiers component (dundas) and dates from year 2009.  Have any of you guys already make su