[ 
https://issues.apache.org/jira/browse/WW-3563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984906#action_12984906
 ] 

Dave Newton commented on WW-3563:
---------------------------------

I think the param tag just calls addParameter, it doesn't add a request 
parameter. The parameters are things like the theme, alignment, etc. The tag 
attributes themselves.

(I could be 100% wrong about that, in which case ignore everything after this 
paragraph.)

If we don't already, maybe a requestParam tag would clear up this confusion, 
because I think we've seen this before.

Why does isFirst need to be attached specifically to that button's submit? Can 
it be a hidden field instead? Or can you submit to a specific action/method?

> 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
>
> (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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to