Hi

I need to display multiple paragraphs of text taken from a resource bundle in a page and am trying to understand how it can be done. I am sure I have seen it explained somewhere on the web, but haven't been able to find it again.

For instance, following is the resource file entry:

message.text1=This is the first piece of text...
message.text2=This is the second piece of text...

etc

I need to write this set of messages into a JSP page with formatting applied, like this:


<div id="someStyle"> This is the first piece of text... </div>

<div id="someStyle">
    This is the second piece of text...
</div>

<div id="someStyle">
    This is the third piece of text...
</div>

<div id="someStyle">
    This is the fourth piece of text...
</div>


My memory is that the resources need to have the same name with an index added, something like this:


    message.text[1]=Blah, blah, blah...

If anyone can give me any pointers I would greatly appreciated it.

Regards,
Langdon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to