aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes no-break space equivalent tag in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "no-break space equivalent tag in JSP" Watch "no-break space equivalent tag in JSP" New topic
Author

no-break space equivalent tag in JSP

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I have to insert a lot whitespaces in my pages. Is there a equivalent of

in taglibs of JSP.

Please help.

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

JSP has nothing to do with the issue. JSP is a templatng technology to create HTML to send to the browser.

You would create whitespace just like with any other HTML page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jason Cox
Ranch Hand

Joined: Jan 21, 2004
Posts: 287
You can use an HTML entity for a non breaking space. Unfortunately, everytime I try to use the entity the forum parses it.

Try this link -
http://www.w3schools.com/tags/ref_entities.asp

There is a non-breaking space entity on the list.
[ September 27, 2006: Message edited by: Jason Cox ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

 
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Or, of course, you could use CSS margins and padding.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: no-break space equivalent tag in JSP