gpt4 book ai didi

struts2 - struts2 中的 Action Message 标签

转载 作者:行者123 更新时间:2023-12-04 14:48:49 24 4
gpt4 key购买 nike

我是 struts 新手如何在 struts2 jsp 页面中装饰操作消息和操作错误?

<s:actionmessage/>
<s:actionerror/>

最佳答案

您可以使用 css 样式以及 jquery 主题属性来装饰您的操作错误和操作消息。

<div class="error"><s:actionerror theme="jquery"/></div>
<div class="message"><s:actionmessage theme="jquery"/></div>

.message li
{
font-size: 14px;
color: #000066;
text-align: center;
list-style: none;
font-family: Trebuchet MS,sans-serif,inherit,Arial,monospace;
}

.error li
{
font-size: 14px;
color: #990000;
text-align: center;
list-style: none;
padding-right: 50px;
}

关于struts2 - struts2 中的 Action Message 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10482995/

24 4 0