struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2362) "HTML form buttons HOWTO" tutorial in Cookbook does no longer work
Date Thu, 14 Feb 2008 10:38:41 GMT

    [ https://issues.apache.org/struts/browse/WW-2362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43217#action_43217
] 

Sebastian commented on WW-2362:
-------------------------------

I also agree with Al, I had good success using the "method" solution to determine wich button
was pressed.

> "HTML form buttons HOWTO" tutorial in Cookbook does no longer work
> ------------------------------------------------------------------
>
>                 Key: WW-2362
>                 URL: https://issues.apache.org/struts/browse/WW-2362
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.11
>            Reporter: Sebastian
>             Fix For: Future
>
>
> In the "HTML form buttons HOWTO" tutorial, it is said that "When a button is pressed,
a parameter is set in the framework with the name and value that are specified as the name
and value attributes of your HTML button. The framework converts this automatically to boolean
value if an appropriate property of the Action is found."
> In Struts 2.0.11, this is not the case.
> The framework only converts to "true"  if the parameter is set to the String "true".
> So the only way to get the example of the tutorial work is to define the input tags like
this
> <input type="submit" name="buttonOnePressed" value="true"> 
> <input type="submit" name="buttonTwoPressed" value="true">
> This renders the example useless, as the value attribute defined the button text.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message