I believe what Mani was trying to say is that the entity for a non-breaking space is
. (Please proof-read your responses after posting).
However, I don't think that that might be the correct solution to your problem. You didn't really show where the problem is manifesting itself in your page. You might just need to quote your attributes (which
you should always do in any case).
For example instead of generating:
be sure to generate:
Or better yet, after processing in the servlet forward to a
JSP page for your display where such things are easier to keep straight.
hth,
bear