开发者

html image tooltip problem

I have an image wherein i need to assign a tooltip depending on the language selected.... So the tooltip has to come from a resourse bundle relative to the locale/language.... I am using spring mvc framework... I am using the following code for image's title attribute....

title= < spring:message code="toolTipE开发者_JS百科nglish"/>

wherein toolTipEnglish corresponds to the a name-value pair in the properties file.. corresponding to each locale/language.... Problem is.... The tooltip is not taking the complete sentence but taking only the first work... iN short breaking at space... Eg:

toolTipEnglish=Change to English

The tooltip only shows "Change"

If i hardcode the tooltip as "Change to English".. it comes perfect....

But i wish to show the tooltip according to the language seletced.... Please help!!!!!!


Not that I've ever touched Spring, but presumably:

title="<spring:message code="toolTipEnglish"/>"

Since quote marks around attribute values are not optional if there are spaces in the value.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜