You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Minerva CC <mi...@yahoo.com> on 2007/04/11 01:10:43 UTC

Cannot define a display style class in

Hi,
 
I tried to define a display style class in <s:a> tag as follows
 
<s:url id="resultPageUrl" action="searchResult">
<s:param name="id" value="%{#parameters.id}" />
</s:url> 
<s:a href="resultPageUrl" class="taboff">view search results</s:a>
 
But, when I run it, I got org.apache.jasper.JasperException: /pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according to TLD error.
 
My question is how can we define a style for a url link?
 
Thanks,
Willa


       
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

Re: Cannot define a display style class in

Posted by Piero Sartini <li...@pierosartini.de>.
There is the "cssClass" parameter for (all?) struts2 tags.
<s:a href="resultPageUrl" cssClass="taboff">view search results</s:a>

More information:
http://struts.apache.org/2.x/docs/a.html

Piero

On Wednesday 11 April 2007 01:10:43 Minerva CC wrote:
> Hi,
>
> I tried to define a display style class in <s:a> tag as follows
>
> <s:url id="resultPageUrl" action="searchResult">
> <s:param name="id" value="%{#parameters.id}" />
> </s:url>
> <s:a href="resultPageUrl" class="taboff">view search results</s:a>
>
> But, when I run it, I got org.apache.jasper.JasperException:
> /pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according
> to TLD error.
>
> My question is how can we define a style for a url link?
>
> Thanks,
> Willa
>
>
>
> ___________________________________________________________________________
>_________ Don't get soaked.  Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather

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