Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:11:45+00:00 2026-06-07T14:11:45+00:00

Hi in my grails project I am parsing a java property file, and passing

  • 0

Hi in my grails project I am parsing a java property file, and passing the information to a string, which is an attribute for my domain class. It parses fine but when I print it in the view to see the data parsed, it has lost all its formatting. Mainly I want to keep the new line characters that were in the original file. I tried searching for a way to format the output but I could not find anything. Any help will be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:11:47+00:00Added an answer on June 7, 2026 at 2:11 pm

    It sounds like you need to keep the orginal formatting that is in the string and HTML is probably stripping the whitespace out. Try the following in your view:

    <pre>
    ${domain.attribure}
    </pre>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've built a Maven Grails project which can be build fine using command mvn
I was using grails 1.3.4 for my project and everything was working fine until
i have a grails project Customer customer = Customer.get(params.id) where customer is a domain
In a Grails project, if I place my entity classes in the /domain folder,
I have a grails project with some additional java source files under src/java folder.
with a grails project, do you put java code inside the same project or
In my grails project I'm moving all calculations to java classes. Here is the
I'm trying to reference a class within IntelliJ IDEA 9.0.2 in a Grails project
In a grails project, some of the domain classes have a region field (not
I am adding a dependency to my Grails Project which brings in both commons-logging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.