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
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: 9462

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!
I agree. Here's the link:
subject: s:textfield
It's not a secret anymore!