You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2006/03/03 23:41:39 UTC

How To Get Rid of Underlining When Using

When using HTML, I can get rid of underlining by 

A:link {text-decoration:none}

When using <html:link> in Struts, how do I get rid of
the underlining of the link?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: How To Get Rid of Underlining When Using

Posted by Michael Jouravlev <jm...@gmail.com>.
Same. <html:link> is processed on the server. It generates standard
HTML <a> tag. You can check out generated page code in a browser.

On 3/3/06, Caroline Jen <ji...@yahoo.com> wrote:
> Thanks for your reply.
>
> I went to the URL that you gave to me; but still do
> not know how to use them.
>
> For example, if I use <A href= ....  in HTML, I can
> specify A:link {text-decoration:none} in my XXX.css
> file.
>
> Now, I am using <html:link>, how do I do the same?  If
> you could give an example?
>
> --- Michael Jouravlev <jm...@gmail.com> wrote:
>
> > On 3/3/06, Caroline Jen <ji...@yahoo.com>
> > wrote:
> > > When using HTML, I can get rid of underlining by
> > >
> > > A:link {text-decoration:none}
> > >
> > > When using <html:link> in Struts, how do I get rid
> > of
> > > the underlining of the link?
> >
> > style, styleClass, styleId
> >
> http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link

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


Re: How To Get Rid of Underlining When Using

Posted by Caroline Jen <ji...@yahoo.com>.
I did not use the <span> tag inside the <html:link>. 
To give an example, I use something like:

<html:link action="/Home.do">Home 
Page</html:link>



--- RathinaGanesh MeenakshiSundaram
<ra...@gmail.com> wrote:

> Did you check out <html:rewrite> ? or use some span
> like this..
> 
> <html:link action="/Home.do"><span class="hand">Home
> Page</span></html:link>
> 
> Regards,
> Ganesh!
> 
> On 3/3/06, Michael Jouravlev <jm...@gmail.com>
> wrote:
> >
> > On 3/3/06, Caroline Jen <ji...@yahoo.com>
> wrote:
> > > When using HTML, I can get rid of underlining by
> > >
> > > A:link {text-decoration:none}
> > >
> > > When using <html:link> in Struts, how do I get
> rid of
> > > the underlining of the link?
> >
> > style, styleClass, styleId
> >
> >
>
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: How To Get Rid of Underlining When Using

Posted by RathinaGanesh MeenakshiSundaram <ra...@gmail.com>.
Did you check out <html:rewrite> ? or use some span like this..

<html:link action="/Home.do"><span class="hand">Home Page</span></html:link>

Regards,
Ganesh!

On 3/3/06, Michael Jouravlev <jm...@gmail.com> wrote:
>
> On 3/3/06, Caroline Jen <ji...@yahoo.com> wrote:
> > When using HTML, I can get rid of underlining by
> >
> > A:link {text-decoration:none}
> >
> > When using <html:link> in Struts, how do I get rid of
> > the underlining of the link?
>
> style, styleClass, styleId
>
> http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: How To Get Rid of Underlining When Using

Posted by Wendy Smoak <ws...@gmail.com>.
On 3/3/06, Caroline Jen <ji...@yahoo.com> wrote:

> For example, if I use <A href= ....  in HTML, I can
> specify A:link {text-decoration:none} in my XXX.css
> file.
>
> Now, I am using <html:link>, how do I do the same?  If
> you could give an example?

http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link
"Renders an HTML <a> element as an anchor definition (if "linkName" is
specified) or as a hyperlink to the specified URL."

Since Struts is going to turn your <html:link> into <a href ...> by
the time it gets to the browser, your styles should work exactly the
same way.

If it's not working, post the <html:link> tag you're using along with
the results (view the source in your browser).

Guessing:  If you're linking to external stylesheets, check the URLs,
especially if they're relative.  Remember that they need to be
relative from the browser's perspective, not necessarily relative to
where your JSP lives on the server.

--
Wendy

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


Re: How To Get Rid of Underlining When Using

Posted by Caroline Jen <ji...@yahoo.com>.
Thanks for your reply.  

I went to the URL that you gave to me; but still do
not know how to use them.  

For example, if I use <A href= ....  in HTML, I can
specify A:link {text-decoration:none} in my XXX.css
file.

Now, I am using <html:link>, how do I do the same?  If
you could give an example?

--- Michael Jouravlev <jm...@gmail.com> wrote:

> On 3/3/06, Caroline Jen <ji...@yahoo.com>
> wrote:
> > When using HTML, I can get rid of underlining by
> >
> > A:link {text-decoration:none}
> >
> > When using <html:link> in Struts, how do I get rid
> of
> > the underlining of the link?
> 
> style, styleClass, styleId
>
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: How To Get Rid of Underlining When Using

Posted by Michael Jouravlev <jm...@gmail.com>.
On 3/3/06, Caroline Jen <ji...@yahoo.com> wrote:
> When using HTML, I can get rid of underlining by
>
> A:link {text-decoration:none}
>
> When using <html:link> in Struts, how do I get rid of
> the underlining of the link?

style, styleClass, styleId
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#html:link

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