Description
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).
Attachments
Attachments
Issue Links
- relates to
-
WW-4135 It is showing some debug text like java.lang.Object@3fa472bf next to the button generated by s:submit tag
- Closed