A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
writing out line brakes when using string
Theo van Loon
Joined: Feb 04, 2004
Feb 17, 2005 11:57:00
i have a class that holds a description field which is a
. I would like to know if it's possible to give line brakes in this desciption.
in html it would look like this :
desciption first part
desciption second part
The String is just printed out to the screen like this
desciption first part <br /> desciption second part
So there is no linebrake and the user sees the <br/> element printed out to the screen.
I also tried the '/n' new line in the String field, this also doesn't work.
So the question is, how can i print out a string and give the String elements in order to know where to put linebrakes.
Joined: Feb 15, 2005
Feb 17, 2005 12:05:00
The trick is to specify filter="false" within the <bean:write> tag. This will tell
that you know what you're doing and can be trusted to put html tags in the contents of your <bean:write> tags that will not completely foul up the page.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: writing out line brakes when using string
Reflection in Java
what exactly is happening?
Mock Exam question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015