开发者

Applying styles to fields with errors in Struts 1

开发者 https://www.devze.com 2023-04-10 20:32 出处:网络
I have a html text field on a Struts JSP, for which I intend to use some special error stylesheet class.

I have a html text field on a Struts JSP, for which I intend to use some special error stylesheet class.

<html:text property="addAccountNo" errorStyleClass="errortext" />

When I compile the application it complains

     [java] Translation of /multi/ResultL开发者_运维技巧ist.jsp failed: (line 150): for tag 'text'     handler type 'org.apache.struts.taglib.html.TextTag' has no property 'errorStyleClass'

Is the property errorStyleClass not applicable to a text field or is it deprecated?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号