日期:2014-05-19  浏览次数:20847 次

为什么<sx:datetimepicker type="time"/>在ie中 不能用 在firefox可以
HTML code
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
    <head>
        <title>网络在线考试――后台管理</title>        
        <sx:head extraLocales="en-us,nl-nl,de-de" />
。。。。。。。
<tr>
                                            <td align="left" style="padding: 5px;">
                                                开考日期:
                                            </td>
                                            <td>
                                                <sx:datetimepicker name="begin_date" id="begin_date"
                                                    cssClass="required1 begin_date" toggleType="wipe" toggleDuration="400"
                                                    displayFormat="yyyy-MM-dd" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" style="padding: 5px;">
                                                开考时间:
                                            </td>
                                            <td>
                                                <sx:datetimepicker name="begin_time" id="begin_time"
                                                    cssClass="required1 begin_time" toggleType="fade" type="time" language="en_US"
                                                    displayFormat="HH:mm:ss" />
                                            </td>
                                        </tr>



在网上找方法,有人说要加<s:head theme="ajax"/> 

但会报错
Java code
org.apache.jasper.JasperException: Expression parameters.parseContent is undefined on line 45, column 28 in template/ajax/head.ftl. - Class: freemarker.core.TemplateObject
File: TemplateObject.java
Method: assertNonNull
Line: 124 - freemarker/core/TemplateObject.java:124:-1
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:538)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.aspsystem.filter.LoginFilter.doFilter(LoginFilter.java:47