<form:label/> in Spring should have MessageSource support

If you have used any version of Spring upto 3.0 you would be surprised when using form:label tag:-

does not render anything in HTML. You would not see the data in foo.bar in the resultant HTML. In fact the html equivalent would be

For the text to show in your view use The actual label
eg. ${command.foo.bar}

There is already a Spring JIRA issue for the MessageSource support: http://jira.springframework.org/browse/SPR-2566


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s