1.struts2-dojo-plugin-2.1.6.jar引入到自己的项目中。
2.jsp中加入如下内容
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/ struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
3. <head>中加入下列
<head>
<s:head theme="xhtml"/>
<sx:head parseContent="true"/>
</head>
4.页面中使用
<sx:datetimepicker name="birthday" lable="请求时间" displayFormat="yy-MM-dd" />
2.jsp中加入如下内容
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/ struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
3. <head>中加入下列
<head>
<s:head theme="xhtml"/>
<sx:head parseContent="true"/>
</head>
4.页面中使用
<sx:datetimepicker name="birthday" lable="请求时间" displayFormat="yy-MM-dd" />
本文介绍如何将Dojo JavaScript库与Struts2框架集成。具体步骤包括:引入struts2-dojo-plugin-2.1.6.jar依赖、在JSP页面中配置Struts2和Dojo标签库、设置页面头部以启用主题和解析内容,以及实现日期选择器组件。
130

被折叠的 条评论
为什么被折叠?



