You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Srinivas Gunturu <sx...@bjc.org> on 2003/09/17 23:44:49 UTC

Undesired whitespace using

All,

When using <html:link> tag to write out my links in the navigation, there is some white space being written out before and after <a> tag.  Because of this undesired whitespace, my navigation layout which has some indentation based on the level of navigation is getting messed up.  The browser is rendering indentation in one row and the url in another row as it finds blank space and uses it as an opportunity to wrap my stuff around.

Does any one know how to prevent this or any other better solutions to layout navigation?

One solution is not to use <html:link>.  But then I would have to code all my url parameters and I also will loose the flexibility of having session info. part of the url.

TIA

Srinivas


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Undesired whitespace using

Posted by Daniel Wang <dd...@anomaly.net>.
I don't believe <html:link> is adding the whitespace (or at least, it's not
doing it for me)  but it will write out whatever you put in between it.

i.e. <html:link>foo</html:link> should print to <a>foo</a> (no whitespace)
but if you do
<html:link>
foo
</html:link> it'll add the whitespaces in between.

daniel
----- Original Message ----- 
From: "Srinivas Gunturu" <sx...@bjc.org>
To: "<"Struts Users Mailing List"" <st...@jakarta.apache.org>
Sent: Wednesday, September 17, 2003 2:44 PM
Subject: Undesired whitespace using <html:link>


> All,
>
> When using <html:link> tag to write out my links in the navigation, there
is some white space being written out before and after <a> tag.  Because of
this undesired whitespace, my navigation layout which has some indentation
based on the level of navigation is getting messed up.  The browser is
rendering indentation in one row and the url in another row as it finds
blank space and uses it as an opportunity to wrap my stuff around.
>
> Does any one know how to prevent this or any other better solutions to
layout navigation?
>
> One solution is not to use <html:link>.  But then I would have to code all
my url parameters and I also will loose the flexibility of having session
info. part of the url.
>
> TIA
>
> Srinivas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org