File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 751

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: 63838

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: 33102

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
I agree. Here's the link:
subject: spaces in JSP
It's not a secret anymore!