Announcement Announcement Module
Collapse
No announcement yet.
Getting url/request parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting url/request parameters

    We're doing a project with an Alfresco backend and a Spring Surf presentation tier (frontend).
    When submitting some forms, there are url parameters available, which are used to do something on the backend.
    Question is, how can I handle/get parameters with the same name.
    e.g.: http://www.url.com/bla?var1=val1&var1=val2&var2=val3

    In the Alfresco Javascript API "argsM" is available for multivalued url arguments (see: http://wiki.alfresco.com/wiki/Web_Sc...ument_Handling).

    For the SURF Platform this is not available as far as I can see (http://wiki.alfresco.com/wiki/Surf_P...Script_API#url) or maybe I'm missing something.

    So basicly I need to get those multivalued arguments, put them in an array and send that array to the backend.
    Does anyone have a clue how I can achieve that?

  • #2
    Copy the URL argument handling webscript from http://wiki.alfresco.com/wiki/Web_Sc...ument_Handling in the webscripts location in your Surf project and you will see that both args and argsM are populated.

    Comment


    • #3
      Yes both args and argsM are indeed populated.

      Comment

      Working...
      X