• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS with html:text

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be a stupid question, but how do you apply CSS to STRUTS <html:text..> and the like?
Thanks.
 
Darryl A. J. Staflund
Ranch Hand
Posts: 314
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 314
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again Darryl.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic