#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    2
    Rep Power
    0

    css class attributes inside of struts html tags


    How are you supposed to use the class="someCssStyle" attribute format inside of an struts html tag?
    I tried just putting it in, but the jsp page won't compile:

    <html:text property="ssn" class="textfield2" />

    where textfield2 is a valid style attribute in my included css file.
    Surely there is a way to specify this so that the taglib will render the proper output.
    I'm not having any luck googling for an answer.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    USVI
    Posts
    2
    Rep Power
    0
    hey there...


    I had the same problem... solved it using 'styleClass'.


    <html:text styleClass="your-cssstyle-name-here"...


    Hope this helps!


    l8r

IMN logo majestic logo threadwatch logo seochat tools logo