User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 430,104 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,172 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 627 | Replies: 2
Reply
Join Date: Dec 2007
Posts: 1
Reputation: vinodkelbaikar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vinodkelbaikar vinodkelbaikar is offline Offline
Newbie Poster

Question retaining spaces between characters

  #1  
Dec 13th, 2007
Hi Frnds,

I need your help.
I want to retain the spsces between the characters while displaying on web page.
Actually the view source shows the spaces inserted in form while filling but while displaying the spaces gets converted to single space
like e.g.
ABC DFG = ABC DFG
I am using this in Struts and I cant use <pre> as it overrides any styles applied though the css.

Please help.

Regards,
Vinod
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 1
Reputation: usertaj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
usertaj usertaj is offline Offline
Newbie Poster

Re: retaining spaces between characters

  #2  
Mar 18th, 2008
try using <pre xml:space="preserve">
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: retaining spaces between characters

  #3  
Mar 18th, 2008
<pre> tags are the ONLY thing that will prevent browsers from stripping whitespace.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 3:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC