struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "olivier sagit (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3551) Retrieving property Error when rendering submit of type image in debug mode
Date Tue, 28 Dec 2010 15:24:46 GMT
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
            Priority: Minor


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.


Mime
View raw message