- <%@page language="java" import="java.util.*" pageEncoding="GB18030"%>
- <%@taglib prefix="s" uri="/struts-tags"%>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="/MyBBS/cssfile/frame.CSS"/>
- <s:head/><!--这个没有加载上,导致的原因-->
- </head>
- <body>
- <s:actionerror/>
- <s:actionmessage/>
- <s:form action="WorkAdd.action" method="POST" name="workadd">
- <br/>
- <br/>
- <center>
- <table width="600" algin="center">
- <tr>
- <td width="100" align="right">
- <s:label value="%{getText('Work Id')}" theme="simple"></s:label>
- </td>
- <td width="200">
- <s:textfield name="work.id" theme="simple"></s:textfield>
- </td>
- <td width="100" align="right"><s:label value="%{getText('Work Name')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:textfield name="work.workname" theme="simple"></s:textfield>
- </td>
- </tr>
- <tr>
- <td width="100" align="right"><s:label value="%{getText('Work Object')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:textfield name="work.workobject" theme="simple"></s:textfield>
- </td>
- <td width="100" align="right"><s:label value="%{getText('Work Type')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:textfield name="work.worktype" theme="simple"></s:textfield>
- </td>
- </tr>
- <tr>
- <td width="100" align="right"><s:label value="%{getText('Begin Date')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:datetimepicker name="work.begindate" displayFormat="yyyy-MM-dd" theme="simple"></s:datetimepicker>
- </td>
- <td width="100" align="right"><s:label value="%{getText('Work Hour')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:textfield name="work.workhour" theme="simple"></s:textfield>
- </td>
- </tr>
- <tr>
- <td width="100" align="right"><s:label value="%{getText('Work Contect')}" theme="simple"></s:label>
- </td>
- <td width="500" colspan="3"><s:textarea rows="20" cols="70" name="work.workcontect" theme="simple"></s:textarea>
- </td>
- </tr>
- <tr>
- <td width="100" align="right"><s:label value="%{getText('Work User')}" theme="simple"></s:label>
- </td>
- <td width="200"><s:textfield name="work.workuser" theme="simple"></s:textfield>
- </td>
- </tr>
- </table>
- <s:submit value="%{getText('Add')}" theme="simple"></s:submit><s:reset value="%{getText('Reset')}" theme="simple"></s:reset>
- </center>
- </s:form>
- </body>
- </html>
对于struts2中 s:datetimepicker 无显示无效果的时间;
我的原因为:上图中的绿色部分没有加载导致的!