struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TonyD <>
Subject Re: How to control the display of Struts2 tags like s:textfield
Date Wed, 11 Jul 2007 07:57:54 GMT

First of all, in my company, I'am representing all my colleagues that have
problems with structs. 
Our development tool is Eclipse 3.2.2 and our browser is Microsoft Internet

If I have a form with only one structs tag:

<s:checkbox cssStyle="color:red" id="myckb" name="myckb" label="RED"

and if the syntax of this instruction is correct, I should see a checkbox
with a red label checked.
What does HTML mean? I know how setting colors with HTML and it works.
The problem is structs.

DNewfield wrote:
> TonyD wrote:
>> I tried your suggestions but still the ccsStyle doesn't change the
>> checkbox
>> label color.
> You're right--cssStyle results in a style attribute on the checkbox, not 
> on the label.
>> My checkbox is created using an interator and is display into a table.
>> I tried changing the <td Style="color:green"> or the <tr> style but
>> nothing
>> changes.
>> Please other suggestions! Thanks.
> Capitalization matters.
> It sounds like your problems have little to do with struts, but rather 
> trying to learn html.  There are plenty of free tutorials online.  I'd 
> suggest as a starting point.  And 
> remember, different browsers work differently, so just because it works 
> somewhere doesn't mean it's "right."  The best bet to getting it to work 
> everywhere is to use mechanisms that have been standardized.
> -Dale
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message