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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]