You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Maurizio Cucchiara (JIRA)" <ji...@apache.org> on 2011/06/04 17:19:47 UTC

[jira] [Resolved] (WW-3563) s:param declared within s:submit cannot be retrieved back in freemarker template

     [ https://issues.apache.org/jira/browse/WW-3563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara resolved WW-3563.
------------------------------------

    Resolution: Not A Problem

Using the submit-close.ftl the params are visible

> s:param declared within s:submit cannot be retrieved back in freemarker template
> --------------------------------------------------------------------------------
>
>                 Key: WW-3563
>                 URL: https://issues.apache.org/jira/browse/WW-3563
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Websphere 7
>            Reporter: win clock
>            Assignee: Maurizio Cucchiara
>
> (In JSP page)
> <s:submit type="input" value="%{getText('search')}" onclick="isSearch('form')">
> 	<s:param name="isfirst" value="isfirst" />
> </s:submit>
> (In ftl)
> <#if parameters.isfirst??>
> 	<#include "/${parameters.templateDir}/classic/buttonheader.ftl" /><#t/>
> </#if>
> The above if condition is never met. When I print out the ${parameters}, "isfirst" is not inside the list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira