<s:datetimepicker name="model.birthday" toggleType="explode"
  value="today" displayFormat="yyyy-MM-dd" 
</s:datetimepicker><head></head>中有<s:head theme="ajax"/>

解决方案 »

  1.   

    <s:datetimepicker>应该写在<s:form></s:form>之间
    theme应该是simple而不是ajax<%@ taglib uri="/struts-tags" prefix="s" %><html>
      <head>
        <s:head />
      </head>
      <body>
        <s:form theme="simple">
          <s:datetimepicker name="model.birthday" toggleType="explode" 
            value="today" displayFormat="yyyy-MM-dd" 
          </s:datetimepicker>
        </s:form>
      </body>
    </html>
      

  2.   

    <%@ taglib uri="/struts-tags" prefix="s" %> <html> 
      <head> 
        <s:head /> 
      </head> 
      <body> 
        <s:form id="associate_add_do_Form" name="associate_add_do_Form"
    theme="simple" action="associateAddAction.action" method="post"
    validate="true">
          <tr><td>
          <s:datetimepicker name="model.birthday" toggleType="explode"
    value="today" displayFormat="yyyy-MM-dd" theme="simple">
          </s:datetimepicker> 
          </td></tr>
        </s:form> 
      </body> 
    </html>是这么写的,请问还有没有其他原因?
      

  3.   

    你的jsp没有问题
    如果不能正确显示,可能是web.xml少写些东西是不是把struts-cleanup漏了<?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" 
    xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      <filter>
       <filter-name>struts2</filter-name>
       <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
      </filter>
      <filter>
       <filter-name>struts-cleanup</filter-name>
       <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
      </filter>
      <filter-mapping>
       <filter-name>struts2</filter-name>
       <url-pattern>/*</url-pattern>
      </filter-mapping>
      <filter-mapping>
       <filter-name>struts-cleanup</filter-name>
       <url-pattern>/*</url-pattern>
      </filter-mapping>  
    </web-app>
      

  4.   

    web是这么配置的,应该不是它的问题吧?       <filter>
    <filter-name>struts-cleanup</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts-cleanup</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping> <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
      

  5.   

    换成我的试试nothing impossible