当我添加 struts 标签时,格式消失了。我该怎么办?
这是我的代码:
<div class="panel-body" style="background-color:;">
<div align="center">
<font size=3> <s:form id="FormAddUser" name="FormAddUser"
action="AddUser" method="post" class="form-horizontal">
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>User ID</label>
</div>
<s:textfield name="UserId" class="form-control"></s:textfield>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Name</label>
</div>
<s:textfield name="Name" class="form-control"></s:textfield>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Address</label>
</div>
<s:textarea name="Address" class="form-control"></s:textarea>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Birth date</label>
</div>
<s:textfield name="DOB" class="form-control" placeholder="dd/mm/yy"></s:textfield>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Password</label>
</div>
<s:password name="Password" class="form-control"></s:password>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Email Id</label>
</div>
<s:textfield name="EmailId" class="form-control"
placeholder="firstname.lastname@iiitb.org"></s:textfield>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Specialization</label>
</div>
<s:textfield name="Specialization" class="form-control"
placeholder="CS/DS/NC/SE"></s:textfield>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-6">
<div class="col-sm-4" align="right">
<label>Specialization</label>
</div>
<s:file name="Image" class="form-control" id="Image" key="Image"
label="Select a File to change photo" enctype="multipart/form-data"></s:file>
</div>
</div>
<br>
<div class="row" align="center">
<div class="col-sm-7">
<s:submit class="btn btn-primary" label="Add" onclick="check()" />
<a href="admin.jsp" class="btn btn-primary btn-md"> <span
class="glyphicon glyphicon-repeat"></span> Back
</a>
</div>
</div>
</s:form>
</font>
</div>
</div>
</div>
这就是它的渲染方式。问题是由于struts标签。我已经包含了 struts-bootstrap jar。可能的错误是什么?