How to send parameters to action in freemarker
success.ftl
<b>Success</b>
<br/>
<@ww.url id="idsuc" action="success1"/>
<@ww.url id="idsuccess1" action="%{idsuc}">
<@ww.param name="name" value="%{name}"/>
</@ww.url>
<@ww.a href="%{idsuccess1}"> Click To Success1</@ww.a>
success1.ftl
<b>Success1</b><br/>
<b>The value You Entered is : <@ww.text name="%{name}"/></b>
<br/>
<b>
Test Param is:
<#if parameters.name?exists>
${name}
</#if>
</b><br/>
No comments:
Post a Comment