日期:2014-05-17 浏览次数:20686 次
<%@ 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> <title>Enum Select Test</title> </head> <body> <div> <form action="resultAction.action" method="post"> <s:select label="Enum Select Test" name="selectedEnum" headerKey="-1" headerValue="---Please Select---" list="myList" listKey="value" listValue="name" /> </br> <input type="submit" value="提交" /> </form> </div> </br> <DIV><h2><s:property value="selectedEnum"/></h2></DIV> </body> </html>