AnsweredAssumed Answered

Getting Request value inside Template file

Question asked by vesuinfo on Jul 22, 2009
Latest reply on Sep 30, 2009 by vdamodaran
Hi All,

I am trying to get "Request value" inside the FreeMarker Template file, but if i try to use  ${RequestParameters['test']}
or ${RequestParameters.test},

Ref Link to get Request value in FreeMarker Template file:

if i try to use  ${RequestParameters['test']} or ${RequestParameters.test}, I am getting the following error:

Caused by: freemarker.core.InvalidReferenceException: Expression request is undefined on line 11, column 3 in workspace://SpacesStore/ec431954-2b52-4797-96f6-8469f49ebd78.
        at freemarker.core.TemplateObject.assertNonNull(
        at freemarker.core.TemplateObject.invalidTypeException(
        at freemarker.core.Dot._getAsTemplateModel(
        at freemarker.core.Expression.getAsTemplateModel(
        at freemarker.core.Expression.getStringValue(
        at freemarker.core.DollarVariable.accept(
        at freemarker.core.Environment.visit(
        at freemarker.core.MixedContent.accept(
        at freemarker.core.Environment.visit(
        at freemarker.core.Environment.process(
        at freemarker.template.Template.process(
        at org.alfresco.repo.template.FreeMarkerProcessor.process(
        … 88 more

please help me to get the request attributes value in template files ?

Thank you.