amp (RSS)

Difference between GET and POST and usage of

1, Get used to get the data from the server, while the Post is used to pass data to the server. 2, Get the data in accordance with the form variable = value form, added to the action by pointing to th ...

Spring + JPA + Struts2 developers

The first step: in the class path following the establishment of a META-INF folder, and note that this name must not be arbitrarily changed, and then the establishment of a persistence.xml file, confi ...

Prawn with me to write network (1 day)

A first integrated spring2.5 + jpa1.0, scanning plus explanatory notes to speed up the development pace, SessionFactory to create the required a longer time, use the Singleton pattern. Affairs managem ...

Java programmer interview questions of 30 traps

To find a job interviews, have an interview there are ways to deal with the interview. Following some of the topics from me and my friend's painful interview experience, mention of these issues in ...

Swing Design Tools

Note: I only statistics I used. . . The most important thing is that I just told you, I can not do the other! ! ! We want to help . . . . . 1, Jbuilder, this should be a lot of people have used, and n ...

java project svn recursive remove the information

1, in the under linux To delete these directories is very simple, the command is as follows find.-type d-name ". svn" | xargs rm-rf Either find.-type d-iname ". svn"-exec rm-rf () ...

Code optimization 3

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 ...

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

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 ...

Java image processing (including Jmagick application)

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 ...

Exception in thread "Thread-2" java.util.ConcurrentModificationException

Today, doing so on a set of iteration when the judge and delete the existing object such as the question of when the error reported Before the change: the Changes Later, the information on the Interne ...

ec label associated with multi-table query results to export excel sheet as a blank solution

When the query data needs two or more tables associated with the table when the query results, you can use a query as follows: getSession (). createQuery ( "select new map (pm.name as name1, pm.s ...

Mssql + Hibernate frameworks, such as garbage problem

First of all you have to ensure that the character of Mssql is correct, If your database uses utf8 encoding at Hibernate then your url should be in jdbc: mysql: / / localhost: 3306/test? useUnicode = ...

javascript simple example of a collection

Simple to verify: <form name="myform"> User Name: <input type="text" name="username"/> <br /> Password: <input type="password" name="p ...

Death linked to hibernate JNDI query WebSphere

Operating Environment: Aix + WebSphere 6.1 + Oracle + Quartz1.65 + Sping2.5.6 + Hibernate 3.3.1 Phenomenon: Node & Server of WebSphere hanging dead, JVM stack overflow, WebSphere district where th ...

fckeditor for java

FCKeditor is a specialized use of the website are open source WYSIWYG text editor. Chi in the light of its need for the installation steps too complicated to use. It can and PHP, JavaScript, ASP, ASP. ...

XmlHttpReuqest create and send a request to the server

This is some of the past few days to learn the package Ajax

fckeditor on rails with 2.2

0.5.1 the latest version of fckeditor http://rubyforge.org/frs/?group_id=2038&release_id=23116 The following plugins are copied to the implementation of rake fckeditor: install After the success o ...

jQuery and Extjs of cross-border visit to the Ajax

jquery code: Extjs code: Note: jQuery whether or not to send Extjs custom HTTP information, because they are dynamically generated through labeling <scripe> ways to achieve cross-domain access!

Lighttpd + FastCGI + Ubuntu + Rails2.3 set record

BLOGSPOT at GOOGLE had to engage in a BLOG, toss a good few, BLOGSPOT be the result of the shield is !@#$%^%&^&^&& A lot of prior research related materials, a lot of summing up this s ...

Javascript on the fourth day

Articles about the js variables, expressions, and operators there are some js statement. This chapter we explore the js array of objects and. Oh more difficult. It was prepared to do a good job. . . . ...

REST Notes

Book gives an example: Quote http://www.flickr.com/services/rest?api_key=xxx&method=flickr.photos.search&tags=penguin Although the URI contains "rest" the words, but it is clear that ...

ruby visit website (to deal with the Chinese url)

1 require 'open-uri' 2 require 'net / http' 3 require 'iconv' 4 require 'uri' 5 6 src1_file = "place_file.txt" 7 src2_file = "things_file.txt" 8 sav ...

Asynchronous AJAX form submission

Objective: To refresh the page to complete the form is not submitted and dynamic verification Methods: In the form page after clicking submit on the current page using AJAX to submit form data via a p ...

javascript in the escape, encodeURI the difference?

javascript in the escape, encodeURI the difference? javascript in the escape, encodeURI the difference? js code to the text involves three functions: escape, encodeURI, encodeURIComponent, the corresp ...

Ajax synchronous and asynchronous transmission

Ajax synchronous and asynchronous transmission

Js perfect authentication url (jackey regular expressions)

Its verification, including: IP, domain name (domain), ftp Two domain names, domain name of the document, together with the port name. <script language="JavaScript"> <! -- function ...

JavaScript regular expression

Long time no javascript regular expressions used, and today a number of projects needed to meet the authentication problem is a long time to forget a lot of really useless things. Placed on a validati ...

Js perfect verify url (jackey regular expressions)

Its verification, including: IP, domain name (domain), ftp Two domain names, domain name of the document, together with the port name. <script language="JavaScript"> <! -- function ...

HQL query parameters of the Chinese solution

In the Hibernate configuration file to add the following code: <property name="hibernate.query.factory_class"> org.hibernate.hql.classic.ClassicQueryTranslatorFactory </ property> ...

hibernate error

Abnormal: org.hibernate.LazyInitializationException: could not initialize proxy - no Session Reasons: hibernate3 many-to-one option is the default lazy = "proxy" Solution: <many-to-one> ...

JDBC package (c)

1. How to design a VO Scenes such as the JDBC package (a), the relationship between objects contained by including the target to achieve. 2. How to design database tools DBUtil The use of JDBC package ...

Agile?

Computer does not care about long books, for two reasons: 1, the area of the new book has been a long time in theory, no, say some techniques are 2, with the current work has little to do with Impulse ...

Using ruby to expand their network

Ruby wrote a sns of the spider to expand connections to the school as an example: Sleep, and tomorrow morning to see what gains ~

Step-by-step learning Ruby (11): Control statements

A comparison statement Most other languages, here the attention of <=> Comparison is mainly used to determine the return to true, & & and, | | or Second, the conditions of modification o ...

ajax request the cache issues

ajax request with a url address, url address if the cache has not changed and there will be direct to the value, the server will then not be requested. This situation will be different in different ma ...

ajax request the issue of cache

ajax request with a url address, url address if the cache has not changed and there will be direct to the value, the server will then not be requested. This situation will be different in different ma ...

JS data type conversion

parseFloat to convert floating-point numbers Integer parseInt convert. These two functions are some of the fault-tolerant, such as "123abc" will become 123. If the landlord would like to kno ...

Rails Paperclip and ImageMagick

On the Web to find the paperclip on the plug-in, found by they said, there is no set size effects, was found to need to install an image-editing software do: ImageMagick Introduce the following simple ...

Rails use to determine the version of browser

The process of development, will inevitably be used to determine the version of the browser, usually we use the following Javascript to achieve, but also with reference to articles JE JS to determine ...

Detailed Ruby Metaclass

via: http://www.letrails.cn/archives/ruby-metaclass-tutorials Ruby Metaprogramming If you are a novice, then the following code may help you to find that feeling: Puzzled? It does not matter, save the ...

JS string to use to achieve the size of the date and method of comparison (with modifications)

http://blog.sina.com.cn/s/blog_44749c5a0100b88r.html Method One: Method Two:

The basic functions of a common source AJAX

This program demonstrated the basic ajax functions: 1 xml result set to return to the page Another two pages show the current page 3 shows a string to the page ajax.js the core method for ajax AjaxAct ...

Description appcationContext.xml

appcationContext.xml <beans> <bean class = "org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName"> <value> com.mysql.jdbc.Driver </ ...

js Chuan Participation

js Chuan Participation

JavaScript how to pass parameters to JavaScript files

First, the use of global variables <br /> This is the most simple way, such as Google Adsense: Code <script type="text/javascript"> google_ad_client = 'pub-3741595817388494&# ...

ajax based on code

1. Page function newXMLHttpRequest () ( var xmlreq = false; if (window.XMLHttpRequest) ( xmlreq = new XMLHttpRequest (); ) Else if (window.ActiveXObject) ( try ( xmlreq = new ActiveXObject ( "Msx ...

findByExample the hibernate

For such a long time with the hibernate / spring, if not today findByExample methods used until now do not know findByExample mechanism. Ashamed This time the SQL conditions are as follows: findByExam ...

[Ruby 1.9]> -> fish bone operator

[Accordance with the recommendations of FX, officially named operator for the fish bones,> -> tail fish bone, | -> for bluegill bone] Ruby 1.9 has a change: lambda acceptable proc. In light o ...

Principle and Application of Three Ajax (send request and response dealing with the general steps)

First, create the XMLHttpRequest object, we can then, through its properties and methods of sending and processing of HTTP request, send the request and response dealing with the general steps are as ...

static javascript page value of three methods

static javascript page of the three methods of value 2008-06-08 10:31 A: JavaScript delivery of static pages URL value can have URL for articles by value. To take the message to the URL on. Post.htm C ...