BillyRayPreachersSon
Programmer
Hi,
I've defined a key/value pair at the top of my messages.properties resource bundle:
and I want to re-use that further down in the same file, within some HTML code, e.g.:
I was advised that using the original key surrounded by @ symbols might work, but I'm finding that not to be the case. I've tried all of the following combinations, but am having no luck:
Is there an easy way to do this? I'd rather not duplicate the URL. If it makes any difference, these valeus are output using the <spring:message> tag.
I'm not a Java developer, so apologies if I've got any of the terminology wrong!
Thanks,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
I've defined a key/value pair at the top of my messages.properties resource bundle:
Code:
login.url=http://www.somedomain.com/someurl.html
and I want to re-use that further down in the same file, within some HTML code, e.g.:
Code:
somekey.html=<p>Click <a href="[!]url re-use wanted here[/!]">here</a> to log in</p>
I was advised that using the original key surrounded by @ symbols might work, but I'm finding that not to be the case. I've tried all of the following combinations, but am having no luck:
Code:
somekey.html=<p>Click <a href="@login.url@">here</a> to log in</p>
somekey.html=<p>Click <a href="\@login.url\@">here</a> to log in</p>
somekey.html=<p>Click <a href="@@login.url@@">here</a> to log in</p>
Is there an easy way to do this? I'd rather not duplicate the URL. If it makes any difference, these valeus are output using the <spring:message> tag.
I'm not a Java developer, so apologies if I've got any of the terminology wrong!
Thanks,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]