code_junkie

How can I refactor HTML markup out of my property files?

Nov 10th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <p>
  2. <bean:message key="alert" />
  3. </p>
  4.  
  5. messages.properties
  6. alert=Please update your <a href="/address.do">address</a> and <a href="/contact.do">contact information</a>.
  7.  
  8. alert=Please update your {0} and {1}.
  9.  
  10. <p>Please update your address and contact information.
  11. <br />
  12. <a href="/address.do">update address</a>
  13. <br />
  14. <a href="/contact.do">update contact information</a></p>
  15.  
  16. #
  17. alert=Please update your {0}address{1} and {2}contact information{3}.
  18.  
  19. <fmt:bundle basename="messages">
  20. <fmt:message key="alert">
  21. <fmt:param value='<a href="/">' />
  22. <fmt:param value="</a>" />
  23. <fmt:param value='<a href="/">' />
  24. <fmt:param value="</a>" />
  25. </fmt:message>
  26. </fmt:bundle>
  27.  
  28. <a href="/address.do">Please update your address.</a>
  29. <a href="/contact.do">Please update your contact information.</a>
Add Comment
Please, Sign In to add comment