为了以后更好的添加包问题,特意将常用的几个包列举出来,有什么错误,可以提出来,我会及时更改的供大家学习(注:版本问题大家应该明白的,我就不去区分了)。
1.oracle连接----需要的jar包:commons-collections-3.2.jar、commons-dbcp.jar、commons-lang-2.3.jar、ojdbc14.jar、commons-pool-1.6-bin.jar
2.ibatis---需要的jar包:ibatis-2[1].3.0.677.jar
3.json---需要的jar包:ezmorph-1.0.6.jar、json-lib.jar
4.C标签--需要的jar包:jstl.jar和standard.jar 在jsp中添加的伪指令:<%@taglibprefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
5.struts中的主要一些标签jar包:struts.jar 在jsp中添加的伪指令:
<%@taglibprefix="bean“ uri="http://struts.apache.org/tags-bean"%>
<%@taglibprefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@taglibprefix="html" uri="http://struts.apache.org/tags-html"%>
6.spring核心包:spring.jar 要想为struts添加插件,必须实现struts中的org.apache.struts.action.PlugIn接口。 Spring中提供了org.springframework.web.struts
7.日期控件的js包及使用:jsp中添加的伪指令
<link href="<%=basePath%>jsps/js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath%>jsps/js/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<%=basePath%>jsps/js/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
<script src="<%=basePath%>jsps/js/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
<script type="text/javascript">
//初始化日期控件
$(document).ready(function() {$("#birthday").ligerDateEditor({ format: "yyyy-MM-dd",labelWidth:100,labelAlign: 'center' });});</script>
body中有一个text文本框
<input type="text" id="birthday" readonly="readonly" name="birthday"/>