效果图:
代码实现:
以jsp为例导入标签<%@ taglib prefix ="s" uri = "/struts-tags"%>
<s:select list = "#{'2011:'2011','2012:'2012'}" value = "%{#request.XX}"
name = "XX"></s:select>
<s:select list = "#{'01:'01','02:'02'}" value = "%{#request.XX}"
name = "XX"></s:select>