radiomap.ftl does not test name parameter (optional) for null value before 
referencing it 
------------------------------------------------------------------------------------------

                 Key: WW-1756
                 URL: https://issues.apache.org/struts/browse/WW-1756
             Project: Struts 2
          Issue Type: Bug
          Components: Views
    Affects Versions: 2.0.6
            Reporter: Erik Berg
            Priority: Minor


radiomap.ftl references parameters.name before testing whether it exists or not.

For example:
<@s.radio list="{'apples', 'bananas', 'oranges'}"/>

Returns:
Freemarker template error!
Expression parameters.name is undefined on line 13, column 29 in 
template/simple/radiomap.ftl.


<@s.radio name="fruit" list="{'apples', 'bananas', 'oranges'}"/> renders the 
radio buttons as expected.

Adding a missing value check for parameters.name in radiomap.ftl resolves the 
issue.

-- 
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