struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "olivier sagit (JIRA)" <>
Subject [jira] Updated: (WW-3551) Retrieving property Error when rendering submit of type image in debug mode
Date Tue, 28 Dec 2010 15:32:47 GMT


olivier sagit updated WW-3551:

    Attachment: submit.ftl

submit.ftl without < value="parameters.body"/>

> Retrieving property Error when rendering submit of type image in debug mode
> ---------------------------------------------------------------------------
>                 Key: WW-3551
>                 URL:
>             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
>         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
> Diagnosis:
> This trace is produces by the presence of the freemarker 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.

View raw message