- 博客(12)
- 资源 (9)
- 收藏
- 关注
原创 struts2中action取得session的方法,以及各自的优缺点
【方法 1】使用 Struts2 Aware 拦截器 这种方法需要 Action 类实现相应的拦截器接口。如我们要获得 HttpServletResponse 对象,需要实现 org.apache.struts2.interceptor.ServletResponseAware接口,代码如下:package action;import com.opensymphony...
2010-11-28 01:25:00 96
原创 高并发高流量网站架构
http://www.tech-q.cn/thread-9376-1-6.htmlWeb2.0的兴起,掀起了互联网新一轮的网络创业大潮。以用户为导向的新网站建设概念,细分了网站功能和用户群,不仅成功的造就了一大批新生的网站,也极大的方便了上网的人们。但Web2.0以用户为导向的理念,使得新生的网站有了新的特点——高并发,高流量,数据量大,逻辑复杂等,对网站建设也提出了新的要求。 ...
2010-11-08 17:36:48 70
原创 DWR3基于Spring MVC配置Controller的方法
DWR3 可以使用Spring MVC来进行url映射,配置如下:web.xml dwr org.springframework.web.servlet.DispatcherServlet 1 dwr /dwr/* 需要一个dwr-ser...
2010-11-08 00:34:03 196
原创 配置整合DWR3.0和Spring2.5使用annotation注解
配置整合DWR3.0和Spring2.5使用annotation注解这里使用 DWR3.rc1, Spring2.5 and Spring MVC 在Spring2.5中,使用了许多annotation, 新版本的DWR也支持annotation了, 下面看一下配置过程 1. 先写一个Controller Java代码 复制代码 ...
2010-11-08 00:31:25 208 1
原创 百度搜索的嵌入代码
百度搜索引擎代码 468*50 百度搜索引擎代码 200*30 百度搜索引擎代码 670*40 百度搜索引擎代码 410*80 百度搜索引擎代码 140*75 百度搜索引擎代码 468*60 百度搜索引擎代码 468*40 百度搜索引擎代码 400*40 ...
2010-11-06 19:34:12 138
原创 百度搜索的嵌入代码
百度搜索引擎代码 468*50 百度搜索引擎代码 200*30 百度搜索引擎代码 670*40 百度搜索引擎代码 410*80 百度搜索引擎代码 140*75 百度搜索引擎代码 468*60 百度搜索引擎代码 468*40 百度搜索引擎代码 400*40 ...
2010-11-06 19:30:24 215
原创 Struts 2 + Spring 2 + JPA + AJAX (五)
ValidationBecause we don't want any John Doe on our database, we will add some basic client side validation to our form. In Struts 2, validation can be placed on xml files with the name pattern Ac...
2010-11-06 19:26:59 86
原创 Struts 2 + Spring 2 + JPA + AJAX (四)
The pagesWe only have two pages, "index.jsp" and "list.jsp". "list.jsp" returns a table with a list of the persons on the database.We have this list on a different page because we are going to add...
2010-11-06 19:23:45 62
原创 Struts 2 + Spring 2 + JPA + AJAX (三)
JPA configuration 1. Create a folder named "META-INF" under the "src" folder. 2. Create a file named "persistence.xml" under the "META-INF" folder and set its content to:persistence.xml...
2010-11-06 19:16:47 72
原创 Struts 2 + Spring 2 + JPA + AJAX (二)
DomainOur domain model will consist of just a simple "Person" class with a couple of fields. 1. Create a new class named "Person" (File -> New -> Class), and enter "quickstart.model" for the...
2010-11-06 19:00:34 57
原创 Struts 2 + Spring 2 + JPA + AJAX (一)
* Prerequisites o Tomcat o MySql * Get the code o Show me the code o The maven way * Doing it yourself o Create Eclipse project ...
2010-11-06 18:57:03 92
原创 Add bin and target to global svn ignore in Eclipse
* This will keep you from committing bin and target directory files when you add projects to svn 1. Click on Window -> Preferences 2. Select Team -> Ignored Resources 3. Click on Ad...
2010-11-06 16:56:41 57
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人