This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes CSS with html:text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "CSS with html:text" Watch "CSS with html:text" New topic
Author

CSS with html:text

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

This may be a stupid question, but how do you apply CSS to STRUTS <html:text..> and the like?
Thanks.


GenRocket - Experts at Building Test Data
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi Greg,
If you are using Struts 1.1, you can use the following attributes in your <html:text /> tag:
Name: styleClass
Defn: CSS stylesheet class to be applied to this HTML element (renders a "class" attribute). (RT EXPR)
Name: styleId
Defn: Identifier to be assigned to this HTML element (renders an "id" attribute). (RT EXPR)
Darryl
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Thanks Darryl, again..You always bail me out.
Do you have a link to the STRUTS taglib's definitions so I can look this info up on my own without bugging everyone? I looked around struts web site but cold only find the API.
Thanks.
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi Gregg (I got your name right this time!),
The link I usually refer to is here:
http://jakarta.apache.org/struts/userGuide/release-notes-1.1-rc1.html
If you want to look up a certain tag, click on 'Bean Tags', 'HTML Tags', etc. under the 'Developer Guides' header in the left-hand menu. Then click the 'API Reference' on the page that follows.
Darryl
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Thanks again Darryl.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CSS with html:text
 
Similar Threads
Display jsp based on user agent
Centering a column heading in a datatable
html:file width
consistent font size across the project?
Wrapping of select box