Announcement Announcement Module
Collapse
No announcement yet.
multiline properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • multiline properties

    Hi,

    I'm new to the forum. Tried the Search but my problem is not jet described here.

    I'm using Spring Web MVC and use

    Code:
    <fmt:message key="my.multiline.property" />
    to read language-specific content from messages_[country_code].properties. So far, everything works fine. Now I'd like to define a property with a multiline value. Something like
    Code:
    my.multiline.property = line1 <linebreak here> line2
    But in the JSP no line break is displayed.

    Here's what I've tried:
    Code:
    my.multiline.property = line1\nline2
    Code:
    my.multiline.property = line1\r\nline2
    Code:
    my.multiline.property = line1\r\n\
    line2
    Code:
    my.multiline.property = line1\u0085line2
    Code:
    my.multiline.property = line1\u000A\u000Dline2
    and even

    Code:
    my.multiline.property = line1<br />line2
    The output in my JSP is all the same:

    line1 line2

    Any suggestions?

    Thanks!

    Richard

  • #2
    try &lt;value&gt;

    in a related case, I did use the 'value element:
    <property name="x">
    <value>Multi
    line
    value</value>
    </property>

    Maybe you can make something with this hint.

    Comment

    Working...
    X