原创 計劃和基本說明

jQuery 是一個 JavaScript 庫,極大地簡化了 JavaScript 編程。 MVC DAO  data access object數據訪問對象 struts2 spring hibernate j2ee servlet j

原创 hibernate 4.2.0錯誤

org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver] 這是因爲缺少

原创 安裝XAMPP 警示

"Important! Because an activated User Account Control (UAC) on your system some functions of XAMPP are possibly restri

原创 struts2.3詳細配置

①:在該網站下載struts2.3.16.3,目前爲最新版。http://www.struts.apache.org/download.cgi 不妨下載“Full Distribution”版本 下載完後解壓。

原创 struts2 和 ajax的交互

struts2的配置 <action name="getyzm" class="com.pwq.GetYZM"> <result name="success" type="stream"> <param name="conte

原创 jsp預覽本地上傳圖片

<pre name="code" class="html"><!DOCTYPE html> <html> <head> <script> function PreviewImage(imgFile) { var pattern

原创 SSH架構的自定義filter

打算弄一個自定義的攔截器,在檢測到session中的用戶 信息爲null也就是沒登錄或者登陸超時的情況下跳轉到登陸頁面。 web.xml配置如下 <filter> <filter-name>userLogin</filter-

原创 hibernate4.2.0的HibernateSessionFactory()函數

因爲hibernate4放棄了buildSessionFactory()方法,所以getSession()需要重新修改一下,具體代碼如下 package com.ssh.pwq.hibernate; import org.hiber

原创 hibernate 多對多(many-to-many)

多對多(many-to-many):在操作和性能方面都不太理想,所以多對多的映射使用較少,實際使用中最好轉換成一對多的對象模型;hibernate會爲我們創建中間關聯表,轉換成兩個一對多。 1. E-R圖   2. 實體

原创 springmvc中controller之間的跳轉

剛開始學習springmvc,做了一個簡單的登錄功能 <form action="user/controller/login" method="post"> 之後來到後臺 @Controller @RequestMapping("

原创 裝完XAMPP之後如何進行php網站的建設

裝完之後,先試下 http://localhost/ 是否能訪問,如果可以,說明環境可以使用了,如果不可以,環境就未配置成功成功後,在xampp/htdocs 下 新建一個 test.php然後打開這個文件,在裏面輸入保存後,在IE打開 

原创 jQuery實現鼠標滑過延時顯示的效果

WEB開發人員有時候經常用到延時操作的用戶交互事件,比如聚美優品網站首頁的產品展示,當鼠標移入產品1秒鐘後,會顯示產品的詳情,而不希望用戶的鼠標指針剛剛移入元素就顯示詳情,對於不希望顯示詳情的用戶來說,達到了友好的交互作用,下面就要

原创 JAVA的用途是什麼?如果學好JAVA能幹什麼【轉】

很多網友問我學習Java有沒有什麼捷徑,我說“無他,唯手熟爾”。但是我卻很願意將自己學習的一些經驗寫出來,以便後來者少走彎路,幫助別人是最大的快樂嘛! 要想學好Java,首先要知道Java的大致分類。我們知道,自從Sun推出Java以

原创 對AbstractQueuedSychronizer的粗略理解

AbstractQueuedSychronizer理解 從ReentrantLock入手瞭解,其提供了兩種鎖,一種是公平鎖,一種是非公平鎖; 這兩種鎖都繼承了抽象類Sync extends AbstractQueuedSychronize

原创 單鏈錶快排

#include <iostream> #include <ctime> using namespace std; struct Node { int key; Node *next; Node(int nK