File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 9291
    
  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
 
Similar Threads
problem designing jsp using struts 2.0 tags
how to design a form for a real life application
Struts 2 password encrypt
Struts 2 validation question
Struts:How to put vertical space between text boxes