---
title: "struts2 fielderror去掉样式"
author: "zeallf"
date: "2012-10-18T09:42:57Z"
tags: []
categories: ["Web前端"]
slug: "struts2-fielderror"
draft: false
lastmod: "2012-10-18T09:42:57Z"
id: 1700716
url: "https://zeallf.iteye.com/blog/1700716"
---

比较简单的方法是使用CSS控制
样式如下：

ul.errorMessage {color: #FF3300;}
ul.errorMessage {list-style-type: none;display: inline;margin: 0px;padding: 3px;}
ul.errorMessage li {list-style-type: none;display: inline;}

这样直接使用struts2 的标签就可以了：
<s:fielderror>
	<s:param>title</s:param>
</s:fielderror>