This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JSP and the fly likes spaces in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "spaces in JSP" Watch "spaces in JSP" New topic

spaces in JSP

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 658

what way could I introduce spaces in a jsp. I need separate

And also give format to them(colour, size...)

Thanks, Isaac
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

I use & nbsp; some time space image. not sure this is what you are looking for.

<edit>space between & nbsp is not required. I given here to show the string here ;) </edit>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63552

JSP just produces HTML, so the answer is the same as how would one do styling in HTML, and that is: CSS.

[Asking smart questions] [About Bear] [Books by Bear]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32848

Angus: Bear is correct one should use CSS. I still have code that uses &nbsp; though.

Seetharaman: You write & as &amp; so it shows up in the forum.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
wood burning stoves
subject: spaces in JSP
It's not a secret anymore!