struts2的标签,<s:radio 输出为什么自动带tr
bpList是一个带泛型的list
List<bp> bpList;
<s:iterator value="bpList" status="stuts">
<s:radio name = "sradio" list="price" value="50.0"></s:radio>
</s:iterator>
jsp页面没有引入任何css ,执行输出后,自动带了tr,td
jsp页面
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%><%@ taglib prefix="s" uri="/struts-tags"%><head><title></title></head><body> <form action="/eo.action" id="myForm" name="myForm" method="post"> <s:iterator value="bpList" status="stuts"> <s:radio name = "sradio" list="price" value="50.0"></s:radio> </s:iterator> </form></body></html>
<body><form action="/eo.action" id="myForm" name="myForm" method="post"><tr> <td class="tdLabel"></td> <td><input type="radio" name="sradio" id="sradio50.0" checked="checked" value="50.0"/><label for="sradio50.0">50.0</label> </td></tr><tr> <td class="tdLabel"></td> <td><input type="radio" name="sradio" id="sradio60.0" value="60.0"/><label for="sradio60.0">60.0</label> </td></tr>