File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Truncating empty spaces in between while displaying hyperlinks. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Truncating empty spaces in between while displaying hyperlinks." Watch "Truncating empty spaces in between while displaying hyperlinks." New topic
Author

Truncating empty spaces in between while displaying hyperlinks.

Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Hello Ranchers,

I have a situation where in one page I'm editing the name and in other page based on some search criteria i'm displaying the name with hyperlinks so that one can go the edit page by clicking on hte hyperlink.
Now the DB length of the name is 100 characters, so what i did in edit screen i gave the name as something like this:
"test A"
I gave test and then gave empty spaces and then letter 'A'. So now the total length is 100.It got saved also. But in the other screen where I'm searching the name what i got is something this:
test A everything under hyperlink. What has happened to the empty spaces in between 'test' and 'A'?

Is this a bug or this is how the hyperlink works.


Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

HTML ignores whitespace.
More specifically, it reduces mupltiple whitespace characters to a single space. This is normal.
If you use the browser's view source feature, you will most likely see that the spaces are there in the source.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Truncating empty spaces in between while displaying hyperlinks.
 
Similar Threads
help
Prometric horror story
Sql Where clause and/or issues
Hyperlinks
How to Edit Details in database using JSP page?