aspose file tools
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 The Software Craftsman this week in the Agile 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: 442

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

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31680

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Have you tried LearnNowOnline?
subject: spaces in JSP