This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes s:textfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:textfield" Watch "s:textfield" New topic


chris locke

Joined: Aug 13, 2010
Posts: 17
Hi gurus,

This may seem silly but I can't seem to find this anywhere. I have a struts form which calls

This creates a text field with label "Login". However, I don't see any way to change the color of the Login text. The cssClass attribute only seems to affect the text that is entered within the box, not the label.

Thoughts? Thanks in advance..
David Newton

Joined: Sep 29, 2008
Posts: 12617

Override the default CSS (it's the .label class)?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

Hi Chris, welcome to javaranch.

Chris please check your private messages for some administrative matter...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
chris locke

Joined: Aug 13, 2010
Posts: 17
I appreciate the welcome!

I wasn't sure what you were referring to when you mentioned overriding the default css but after I saw the source code and class "label" was being generated I could modify it from there. Thanks!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: s:textfield
It's not a secret anymore!