Struts2 / css in textfield
问题 I am beginning with struts2 programming and I wondered how I could do the following thing. I have this struts code in a form : <s:textfield name="aName"/> And I had this html code before using struts2 : <input id="aLogin" type="text" class="form-control" name="username" value="" placeholder="something" required autofocus> How could I "merge" these two lines to do the same html code but using my struts2 code ? 回答1: In Struts tags, class ans style becomes cssClass and cssStyle ; in old versions