Meaningless Drivel is fun!*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:textfield" Watch "s:textfield" New topic
Author

s:textfield

chris locke
Greenhorn

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
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 03, 2008
Posts: 9293
    
  17

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: s:textfield