<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>西安Java培训西安小升初</title>
</head>
<body>
<h1>
<span style="background-color: #FFFFcc">文字标签 </span>
</h1>
<s:form>
<s:label name="name" value="姓名" />
<s:label name="roll" value="刘利新" />
<s:label name="address" value="未央华迪" />
</s:form>
</body>
</html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="labelTag">
<result>/pages/uiTags/labelTag.jsp</result>
</action>
</package>
</struts>
注意第8行,没有对应的类
源代码:http://pan.baidu.com/share/link?shareid=463763&uk=3878681452