Monday, October 1, 2007 02:31 PM
This brings a couple of questions to mind.
First, why do you want to persist this set of HTML tags in a resource bundle? Where are you going to persist that resource bundle?
If you are going to persist that resource bundle, then there should be no problem passing it into a resource bundle, since all it is a string....
Now getting it out may be fun. The link could point to a JSP (or something like it) with a key to the particular HTML set that you want encoded as a url parameter. Then, the JSP could interpret your parameter and get the tag set out of the resource bundle and display it. This adds some flexibility later down the line, in case you want to persist your HTML tags in a database or as a text file or something like that.
Hope this helps.