How can I refactor HTML markup out of my property files?
问题 I've recently inherited a internationalized and text-heavy Struts 1.1 web application. Many of the JSP files look like: <p> <bean:message key="alert" /> </p> and the properties files look like: messages.properties alert=Please update your <a href="/address.do">address</a> and <a href="/contact.do">contact information</a>. with the appropriate translations in N other languages (messages_fr.properties, etc). Problems: DRY violation - I have N references to my Struts action URLs instead of 1,