Monitor the progress of the Hibernate Search

Posted on February 7th, 2010 in Java

The http://simonlei.javaeye.com/blog/577068 this article, I found a simple way to right Index reindex. However, there are now a demand, I would like to be able to reindex the process of doing a progre ...

struts2 using kindeditor upload pictures (including jmagic compressed images)

Posted on February 7th, 2010 in Java

Project uses a kindeditor3.4 UploadContentImgAction ImageUitl

struts2 in action call

Posted on February 7th, 2010 in Java

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

struts2 and struts1 the difference between

Posted on February 7th, 2010 in Java

Struts1: action is only one object, regardless of who is to visit one. Disadvantages: We also visit the thread synchronization problems caused by, for example: There is courtesy counter, each person a ...

Struts2.0 Study Notes (1) name space and. Xml file configuration

Posted on February 7th, 2010 in Java

First of all to say sorry, thank the concerns that I blog friends. Near future because of the change do the work, because continuous learning, continuous progress in order to make their own to find a ...

JPA handle carriage return problem!

Posted on February 7th, 2010 in Java

Hello All, Add carriage return character to use JPA feasible, but Optimistic lock, the query out, and then deleted, Will be reported [Reason = <openjpa-1.1.0-r422266:657916 nonfatal store error> ...

JSF tag not have to pass the value of the carriage return!

Posted on February 7th, 2010 in Java

Hello All, JSF <f:param value="person.name"/> tag value value can not have a carriage return, If there is a carriage return will affect the page display, nor reported any errors. Deal ...

iBATIS3.0 learning (2) the use iBATIS3.0 annotations to complete a simple database operations

Posted on February 7th, 2010 in Java

Check the completion of additions and deletions to change the use of iBATIS3.0 iBATIS3.0 has also increased some simple annotations, iBATIS3 annotations can only complete a few simple operations, to c ...

A generic page class ~

Posted on February 7th, 2010 in Java

Are now in school jsp, think of how to get to paging. Aiming a bit on-line paging approach, looks like there are several. I just started thinking about all the records of all fold flat into a list, th ...

Code optimization 3

Posted on February 6th, 2010 in Java

This code is to find the current array, and whether the exclusion of the array, in fact nothing more than the business loop through two arrays to see if there is not the same content, but the original ...

Use XStream to serialize Java objects XML

Posted on February 6th, 2010 in Java

XML serialization use many factors, including object persistence and data transmission. However, some XML serialization technology to achieve them may be very complex. XStream is a lightweight, easy-t ...

Own use a combination of a recursive algorithm to write the problems encountered by

Posted on February 6th, 2010 in Java

Written in a combination of its own algorithm, when the algorithm list.add (new String (cc)) into list.add (cc), when, list all the elements are the last element, like a long time puzzled. Then all of ...

ofbiz using transaction

Posted on February 6th, 2010 in Java

Use ofbiz in the background often occur following the log ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction. In deletagor code fr ...

iBATIS3.0 learning (1) The use of iBATIS3.0 check the completion of additions and deletions to change

Posted on February 6th, 2010 in Java

Check the completion of additions and deletions to change the use of iBATIS3.0 iBATIS3.0 and previous versions there are some changes, but learned the previous version of re-learning 3.0 should not be ...

Cloud could retain service repositories?

Posted on February 6th, 2010 in Java

If the architect to create a useful repository of services, in a public cloud computing environments, upload, maintain and protect the easy? This question actually contains a few questions, so I will ...

Online experience Groovy Programming

Posted on February 6th, 2010 in Java

Recommend a Web site address is http://trygroovy.appspot.com/ This is an online environment for Groovy experience, you can try it directly on the inside So you can not install Groovy and Groovy syntax ...

JForum source code study (7)

Posted on February 6th, 2010 in Java

About Cache, Cache The JForum in, net.jforum.cache.CacheEngine interface provides these methods: Can store or retrieve multiple (key, value) pairs (where value of the type of non-Map) Can store or ret ...

Various types of mobile phone number regular expression

Posted on February 6th, 2010 in Java

China Mobile 134.135.136.137.138.139.150.151.152.157.158.159.187.188, 147 (data card) China Unicom 130.131.132.155.156.185.186 China Telecom 133.153.180.189 CDMA 133,153 Are then as follows: Mobile ph ...

Development Steps

Posted on February 6th, 2010 in Java

Design steps: problem (what to do) - "program (a clear step in the evaluation of each program) -" Program Select (KISS, extensibility, maintainability) - "Testing Integration -" a ...

ant genkey (change)

Posted on February 6th, 2010 in Java

<? xml version = "1.0" encoding = "UTF-8"?> <project name="aa" default="deployTopoJar" basedir="."> "! - Set the system environment v ...

Written in a combination of its own algorithm, to sum up the problems encountered, Hehe

Posted on February 6th, 2010 in Java

public static List getArray (char [] c, int num) ( List list = new ArrayList (); char [] cc = new char [num]; zuhe (0, num, 0, c, cc, list); return list; ) public static void zuhe (int ii, int num, in ...

Programmer must master the eight cmd command

Posted on February 6th, 2010 in Java

1, ping It is used to check whether the network or the network connection speed of smooth order. As a living in the network administrator or a hacker who, ping command is the first one must master the ...

Consult a reason, which my dear friend willing to help look at

Posted on February 6th, 2010 in Java

public static List getArray (char [] c, int num) ( List list = new ArrayList (); char [] cc = new char [num]; zuhe (0, num, 0, c, cc, list); return list; ) public static void zuhe (int ii, int num, in ...

Java-depth analysis of the character encoding

Posted on February 6th, 2010 in Java

December 3, 2009 1. Character Set In the computer world, we need to express too many characters, in order to computer can correctly display these characters, we will encode these characters, making ch ...

Grails migration program to use the Ivy and JavaDB

Posted on February 5th, 2010 in Java

Before I put the program to upgrade to 1.2 version of Grails, before Jar packages required for the project are on the project in the lib / directory, and I use PostgreSQL as the development database. ...

Do not use any loop and recursion, the output print n of (n> 1) "Hello World

Posted on February 5th, 2010 in Java

import java.util.Arrays; public class test ( public static void main (String [] args) ( String str = "Hello"; int num = 6; Object [] obj = new Object [num]; Arrays.fill (obj, str); String s ...

spring2 the way through jdbc to read. update the database clob or blob type of data

Posted on February 5th, 2010 in Java

Today, due to the need for the project must be spring the way through jdbc to read and update the clob types of data, just the beginning, I get a data connection directly through the spring and then u ...

Initially mastered the SSH, looking for a struts + hibernate + spring + jquery source learning to learn

Posted on February 5th, 2010 in Java

The recent adoption of online video initially mastered the SSH Looking for a certain project source to learn about Hope that we recommend to recommend, thank you!

Forward And Redirect

Posted on February 5th, 2010 in Java

At 17:43 on May 29, 2009 Forwarding and redirection is actually quite simple, and very easy to distinguish. But if you do not have read, then it can not be coming. Transponders in the same capacity in ...

How to export the private key keystore

Posted on February 5th, 2010 in Java

Under normal circumstances, you have passed the key pair generated by keytool in the private key can not lead ourselves, However, through their own Java code to do that.

Cannot initialize context because there is already a root application context pr

Posted on February 5th, 2010 in Java

Serious: Allocate exception for servlet webapp java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ...

J2me Series my first example of

Posted on February 5th, 2010 in Java

The company's business will involve cell phone use, on top of us to get to know how to develop. Group had previously been the company's java do java web, and on mobile phones Knew nothing abou ...

eclipse birt use a script to achieve Wrap

Posted on February 5th, 2010 in Java

Use Eclipse Birt for some time, right birt function is still relatively satisfied with the work to meet the basic needs, of course, there are some undesirable areas, such as the birt of data in a long ...

Several methods of java operating XMLType

Posted on February 5th, 2010 in Java

XMLType is the oracle database-specific data types can be used to store a xml, through java (This article uses the jdbc) Insert XMLType parameters according to the type of sql usually have the followi ...

Ten programmer promotion magic

Posted on February 5th, 2010 in Java

In this world, millions of people interested in software development, they have many names, such as: Software Engineer (Software Engineer), programmer (Programmer), encoding human (Coder), the develop ...

the use of final

Posted on February 5th, 2010 in Java

Using the final of the role: to limit the final of the modified nature of things can not be modified. If used to modify a variable, if the basic types of variable then its value is changed, if the var ...

Set-LinkedList and ArrayList Summary

Posted on February 5th, 2010 in Java

1. Both the UML inheritance diagram: 2. Both are implemented: ArrayList: Internal data access using the array to achieve RandomAccess interface, support for random access LinkedList: Internal use link ...

sca sdo Chinese data

Posted on February 5th, 2010 in Java

The Chinese data collection sca sdo

Recognizing spring Services

Posted on February 5th, 2010 in Java

ps: this article a few months ago, finishing well, with reference to a lot of good articles, to learn the essence of them + some of their own understanding, share je friends! Spring framework is one i ...

HIBERNATE Calling Stored Procedure

Posted on February 5th, 2010 in Java

1. Building tables and initialization of the test data in mysql database, create a new table: tbl_user, to build the table statement as follows: DROP TABLE IF EXISTS `user`; CREATE TABLE `tbl_user` ( ...

jdbc of the Statement, PreparedStatement, CallableStatement

Posted on February 4th, 2010 in Java

Statement each time you run sql statement, the database should be the implementation of sql statements to compile, it is best used only to perform a query and returns the results of the case, more eff ...

HIbernate in line with Java custom relational database persistence of the Hibernate SQL dialect of

Posted on February 4th, 2010 in Java

HIbernate meet the Java custom relational database persistence ... 00:27 View (0) Comments (0) Related Recommendation Comments Comments lwcheng1985 View: 27 times Gender: From: Beijing Details Guestbo ...

Java programmers use the Grails Ten Advantages

Posted on February 4th, 2010 in Java

There is no royal Web development, PHP market is large, but RoR, Python, Java, occupies the side till Asp.net market. So as a Java programmer, if you do not want to use SSH to do when the site and try ...

HIbernate in line with Java custom relational database persistence of instances of state

Posted on February 4th, 2010 in Java

An instance of a persistent class can be in one of three different states. These states are defined in relation to a persistence context. The Hibernate object is the persistence context. The three dif ...

Answer: the sum of 100 thousand strings what will happen??

Posted on February 4th, 2010 in Java

I think the problem is to design ideas, not to mention hundreds of thousands of strings upload is uploaded one million strings, For now, is not without, the problem lies not in the String into a Strin ...

jsp operate an exception occurs xml file

Posted on February 4th, 2010 in Java

tomcat bad Sakaishita java operate on XML, when abnormal: Incorrect because: Is due to between jdk1.5 and tomcat5.0 on TransformerFactoryImpl classes caused by the conflict. tomcat-5.0.28 \ common \ e ...

tomcat performance tuning

Posted on February 4th, 2010 in Java

In the Tomcat and application of the stress test, if the performance of your application, not satisfied with the results, you can take some performance tuning measures, and of course the premise is th ...

Operate on the array using reflection

Posted on February 4th, 2010 in Java

Operate on the array using reflection

Netbeans development of procedures for the use of Grails

Posted on February 4th, 2010 in Java

Grails is based on Groovy language, RoR style Web framework. Although Grails is based on Groovy, Hibernate, Spring, and Java, but it is indeed a dynamic framework, as Groovy is a kind of running dynam ...

Java image processing (including Jmagick application)

Posted on February 4th, 2010 in Java

Recently have been used to image compression processing, as in the previous processing using Java, in the case of low pixels, Java is indeed very poor effect of treatment, and then tried to use the fr ...