Hi,
I have a spring portlet application and I want to be able to access a propeties file in my velocity file to display and format messages.
In a jsp file I would use
to set the name of the properties file to look for, and then eitherCode:<fmt:setBundle basename="bundleName" />
orCode:<fmt:message key="property"><fmt:param>${param}</fmt:param></fmt:message>
to display it, depending on whether it needed parameters or not.Code:<fmt:message key="property" />
I was wondering if there's a way to do this in velocity, hopefully using spring?
I read something about #springMessage('key') but couldn't find how to set the properties file or how to pass parameters to it...
Any help would be much appreciated.
Thanks


Reply With Quote