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/01/05 05:58:46 UTC

[jira] Resolved: (WW-3551) Retrieving property Error when rendering submit of type image in debug mode

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

Maurizio Cucchiara resolved WW-3551.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.2

> Retrieving property Error when rendering submit of type image in debug mode
> ---------------------------------------------------------------------------
>
>                 Key: WW-3551
>                 URL: https://issues.apache.org/jira/browse/WW-3551
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1
>         Environment: JDK 1.5.0_22
> JONAS 4.10.3
>            Reporter: olivier sagit
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.2.2
>
>         Attachments: log.txt, submit.ftl
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Problem:
> There is a problem with the <s:submit type="image" src=""> taglib in forms.
> While rendering it generates a java.lang.NullPointerException (see attached log.txt for stacktrace) in debug mode.
> Test:
> To test this behavior you can download the struts2 samples 2.2.1 and modify the form submit tag in struts2-showcase-2.2.1/conversion/enterPersonsInfo.jsp to be a submit of type image.
> Diagnosis:
> This trace is produces by the presence of the freemarker property <@s.property value="parameters.body"/> in template/simple/submit.ftl.
> Solution: 
> As seen with Maurizio Cucchiara on Struts (Users/Dev) Mailing list, this body parameter would seem unnecessary, so is a good candidate for removal, though it don't cause any side effect (except for the exception in debug mode).

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