public string (RSS)

Design Patterns: Singleton pattern

Singleton pattern is to create an object-based model, using the Singleton pattern, you can ensure that only generated for a single instance of class as that is, the entire process space, there is only ...

struts2 value problems in the page

The above is part of the struts.xml the contents of the configuration file. The above is an action, log on after a successful redirection using. Questions to, and I want to take ipaddr value main.jsp ...

Struts2 returns xml information

Before using struts2, each response to return all jump to the page. The requirement is to return an xml, see the struts2 document, when the result is of type xslt, you can return to xml. Xslt not fami ...

CGlib dynamic agent (to undertake the above JDK dynamic proxy)

1.CGLib dynamic proxy First, import the development kit: cglib.nodep.jar and Junit.jar Implementations with the JDK or less the same for the convenience of everyone reading the full implementation of ...

Dynamic Proxy

Dynamic Proxy design pattern is 23 a very common one, often look for the development of rights management systems, Spring in the AOP is the dynamic proxy approach, the following will describe Sun' ...

Prawn with me to write network (2 days)

1, design the user-related entity class Points Rank categories: Knowledge Tip: @ GeneratedValue that is automatically selected from the jpa Identity field generating strategies; @ OneToOne (cascade = ...

Three-step easy java restful web services

restful web services, I believe for most readers no longer a new term, on-line can be found to the information is voluminous, numerous, it will not go into at this myself, only to provide a number of ...

Struts2 in the use of DMI

Struts2 in Action class can be placed in multiple methods and struts.xml configured for the page is called. As long as the approach is consistent with execute () method of the standard that the return ...

javamail e-mail experience (b) of the e-mail authentication

First, write a validation class, and inherit Authenticator class, as follows 2, landing validation, the specific code is as follows Try the above code can be placed inside, such as abnormal then the l ...

spring 2.5.6 and hibernate3.2.2 Integration (2)

Write an article on how to use the spring annotations, this one recorded with a simple click, and hibernate. 1. Using a variety of mysql command line client or directly perform the following script: 2 ...

java code for the page

Recent studies have crawled pages, and discovered to obtain the page's encoding format, Java implementations is not ready, although there are a csdn Daren wrote an article, with code, unfortunatel ...

spring 2.5.6 and hibernate3.2.2 integration (1)

Note the use of spring, this example from the Web, I do not know what the original was. . 1. Defining the Interface 2. The first implementation class The second implementation class 3. Configuration f ...

About JAVA custom exceptions

To control the use of custom exceptions generated random number is not even! Hehe now review stage, the small circling the examples out on the share, the welcome given to criticizing

struts2 using kindeditor upload pictures (including jmagic compressed images)

Project uses a kindeditor3.4 UploadContentImgAction ImageUitl

struts2 in action call

1, Action categories: public class IndexAction3 extends ActionSupport ( @ Override public String execute () ( return SUCCESS; / / inherited ActionSupport inside the execute () method. ) ) 2, Action ca ...

EJB3 development using JBoss WS for the WebService interface

Recently in the development of EJB project, you need to. Net Section of WebService interface. JBossAS built JBossWS services that can improve the WebService development speed. And if yes EJB, you can ...

The first Hibernate program (environment, build, test cases)

1. Built environment 1) in the project will be a config source directory (Source Folder) --- used to the starting configuration files and properties files A test catalog - stored procedures used for t ...

Read "Agile Java English Version" (1) - start

"Agile Java" is a Java development entry books, about the same time, test-driven development (TDD). By positioning itself as a software craftsman, and to share their practical development ex ...

Spring2.5 + Struts1.3.8 + JPA (Hibernate to achieve) the integration of three

Reprint please specify: from http://blog.csdn.net/M_ChangGong/ Author: Zhang Yan Kwong The preparation of the article the main entity bean and the DAO layer. Created in the src package com.zyg.ssj.bea ...

Hibernate physical layer design

Assuming there is a commodity management program. Only the following types of goods: 1, book. 2, DVD Have the following common attributes: number, title, price The book contains its own separate attri ...

Hibernate use WebSphere Distributed Cache (DistributedMap) the realization of

Agreement In this paper, the realization of the environment is hibernate 3.3.1 WebSphere 6.1.0.21 Other versions should be able to have the same or similar path and the realization of the way (specifi ...

Examples of entry-dwr

1. To create web project 2. Dwr.jar packages web projects Add / WEB-INF/lib directory 3. Web.xml add the following code 4. Service.java the creation of categories, as follows 5. Dwr.xml Add to add the ...

Oracle hibernate sequence

Oracle hibernate sequence

Automatically generated by xdoclet's hibernate mapping files, configuration files

To http://sourceforge.net/ Download xdoclet-plugins-dist-1.0.4. If the eclipse, then do not need to configure (if there is no need to install ide good ant) build.xml model: Run ant, ok, User.hbm.xml a ...

ext webwork + hibernate + spring crud ssh2 class file

1.ExtLoginAction package com.action; import java.util.Map; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; import org.apache ...

hibernate learning

hibernate one-to-many association: One-to-many association in two ways: First, the primary key association, and the other is the only foreign key association. Associated foreign key: public class Pers ...

mootools achieve ajax

As we all know, ajax source code can be written directly to achieve, but it's a little cumbersome, and now the popular ajax framework ajax integrated functions, and to write very simple and conven ...

ajax to achieve mootools

As we all know, ajax source code can be written directly to achieve, but it's a little cumbersome, and now the popular ajax framework ajax integrated functions, and to write very simple and conven ...

hibernate cascade configuration of the relationship between the use of list

Recently, in practice the relationship between a cascade List examples of the problem encountered in spots, and now has been resolved, a number of configuration methods now make a brief note, I hope t ...

Application Dwr study - Spring and DWR integration

Spring and DWR integration as follows: 1. Dwr.jar in the classpath and add the corresponding jar package of Spring 2. Web.xml and spring configuration of the configuration information dwr 3. Dwr.xml i ...

composite primary key hibernate mapping of an example

MealfeeDetail.hbm.xml MealfeeDetail.java Database table fields:

MM on the recovery from the 23 kinds of Design Pattern

1, FACTORY-up MM and ultimately invited to dine, and McDonald's and Kentucky Fried Chicken wings are the wings MM favorite things, although the taste may be different, but no matter what you bring ...

Fileupload control over the use of components to achieve the progress of AJAX Upload Upload

A bit earlier survey shows the file upload progress, TELIO companies found Pierre-Alexandre published "AJAX Upload progress monitor for Commons-FileUpload Example" the realization of good. H ...

Hibernate Study Notes

Attribute on the bean in the scope of the problem. (Hide some of the attributes and at the same time want to be able to draw up hibernate) Sometimes, we do not want to allow storm exposed some of the ...

Ext JS with Struts2 data form the data transmission between GridPanel

With the adoption of the struts 2 describes how to access data, filling the data to the Ext JS components GridPanel data forms, the part of the contents of the reference number of online tutorials. Fi ...

The ajax in struts

AJAX is an acronym for Asynchronous JavaScript and XML. Essentially, a JavaScript can make a HTTP request and update portions of a page directly, without going through a conventional POST or GET and r ...

learning hibernate Notes (a)

Attribute on the bean in the scope of the problem. (Hide some of the attributes and at the same time want to be able to draw up hibernate) Sometimes, we do not want to allow storm exposed some of the ...

spring integration jpa

Import jpa, spring needed jar package domain: dao interface: dao achieve applicationContext.xml Persistence.xml under META-INF Test, ok!

hibernate read clob, blob object

1. Data Sheet: 2. Entity class: 3. Operating categories:

hibernate support for the Chinese to sort

hibernate support for the Chinese to sort

Construction of Compass-based Hibernate application search OSEM

Compass have more contact time, the previous application are based on the XML configuration file XSEM search, for example, more than a student elective subjects, such as "language", if you s ...

Programmable configuration Hibernate3.3.0GA

1, create a new java project named Hibernate3.3Test2, add in the classpath hibernate core package, an essential package, and database-driven categories, namely: sqljdbc.jar (use is sql server2005), hi ...

struts2 jquery ajax, as well as run-time error occurs

And finally, there is a Warehouses in javabean, not posted. I am doing this demo encountered the following error java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get (Ljava / lang / ...

Spring paging method in hibernate discussion Callback

Spring and Hibernate integration, the interface is very limited In particular the need for some custom changes to the data operation, Spring provides the update and save far unable to meet the complex ...

Hibernate annotaion

CascadeType.PERSIST (new cascade) CascadeType.REMOVE (cascade delete) CascadeType.REFRESH (cascade refresh) CascadeType.MERGE (cascade update) in one or more selection. CascadeType.ALL CascadeType som ...

the java category pagination ajax

/ ** * @ Author zhangshuling E-mail: zhangshuling1214@126.com * @ Version createtime: Apr 2, 2009 9:20:07 AM for the integration of such pagination ajax to return a * Java.util.Hashtable there were tw ...

js entry class object-java programmers papers

Everyone to express their views or ha, I continue to study the well, me too just learn JS Ha, the original only as a simple API RIA is currently very hot, a lot of java developers also have to start u ...

js Object-Relational articles java programmer

Oh, everyone OK.java category is the core, but a single category, has very little meaning, the key to have are kind of relationship! Inheritance, composition, and so on: Attachment can download the co ...

hibernate pagination

Pagination in any system things are a headache, some database support in the pagination on grammar, while others will need to use the database cursor can scroll to achieve, and does not support scroll ...

spring + struts + hibernate pagination full version

spring + struts + hibernate pagination operating principle is as follows: 1) When the pagination function call: it will trigger SplitPageAction category 2) SplitPageAction category and then through Pa ...