Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 struts 和 ibatis 创建了一个小型登录应用程序。一切正常。验证错误显示在我的 JSP 页面中。 <html:errors>标记在组中的一个位置显示所有错误。
<html:errors>
我想在与特定错误相关的每个 html 元素前面显示错误。
有没有类似的标签<html:error name="username" />
<html:error name="username" />
请指教
<html:errors>标签和标签都<html:messages>这样做(以不同的方式)。阅读他们的文档
<html:messages>