File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes after space remaing string  is not displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "after space remaing string  is not displayed" Watch "after space remaing string  is not displayed" New topic

after space remaing string is not displayed

riaz mahsha mohamed

Joined: Aug 18, 2010
Posts: 16
hi i am new to this forum can any one help me!!!

my code is that i am getting values from from DB and display values dynamically in the drop down box.I use Jquery function
( $('#locations').change(function(){.......... ) to select the drop item and after selecting the value i get only the value before the space and the value after space is not displayed. for ex: floor 1 i select and i get only " floor " and not space and 1.
what wil be the mistake i have done .. please help me.

thanks in advance
David Newton

Joined: Sep 29, 2008
Posts: 12617

Welcome to JavaRanch!

Without the code and rendered HTML it's impossible to help. It's always important to TellTheDetails -- the ItDoesntWorkIsUseless FAQ entry provides further information.
riaz mahsha mohamed

Joined: Aug 18, 2010
Posts: 16
oh sorry , i new to this forums and i am not having the any posting experiences.


for ex: ------select category-----
| main block |
| block 1 |
| block 2 |

// when i select the category i dynamically takes value from DB
//and populates the floor drop down box
ex: ---------select floor------
// | floor 1 |
// | floor 2 |
// see floor 1 floor 2 are with spaces it is correctly displayed

// problem is that when try to select the required floor for ex: floor 1
// only " floor" is displayed space 1 is not displayed .
// what my code is that by taking the "category" and "floor" i will display
// another list of values in another text box.

No problem in DB , issue is Jsp page. Please i couldn't able to solve this issue for past 1 day please help me out of it!!!

thank you
Riaz Mohamed

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: after space remaing string is not displayed
It's not a secret anymore!