Forum Discussion

Henrik's avatar
Henrik
Advisor
11 years ago

http.request FreeMarker context object

Hi everyone,   I’ve been testing the http.request FreeMarker context object, given in the lithosphere: http.request Knowledge Base Article   Unfortunately, there is one object I cannot mana...
  • PaoloT's avatar
    11 years ago

    Hi Henrik,

     

    I think the problem in your example is that you are mixing types (there is a string in the first parameter, and and integer in the second one). Both parameters should be a string. If you need to convert the string to a number, you can do it using freemarker

     

    ${http.request.parameters.name.get("foo", "2")?number}

     Hope this helps,