parameters (RSS)

In groovy get the full path to script file

Groovy scripts in the windows, set-Dscript.name for the script's full path. However, in the groovy web site found a bug report, it appears linux script to set this value is inconsistent with the w ...

servlet garbled characters appear in the solution

servlet garbled characters appear in the solution Method 1: In the servlet code to add the start of function body: response.setContentType ( "text / html; charset = UTF-8"); request.setChara ...

Spring configuration file stored on the location of the problem

For the sping applications, has been taking it seriously enough, now. Today, doing a spingMVC example of a time when, web.xml on the spring parameters for the listener configuration throws an exceptio ...

Forget that is a mistake.

If you forget a mistake, I do not want to repeat the mistakes again. Write it down. <mapper resource="com/company/blog/sqlmap/testMapper.xml" /> In the configuration file you forgot to ...

The proper use of ThreadPoolExecutor

Has been used Executors.newFixedThreadPool (10) in such a way to create a thread pool. This factory method to create ThreadPoolExecutor the actual object, its constructor has three main parameters of ...

ant genkey (change)

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

Programmer must master the eight cmd command

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

Several methods of java operating XMLType

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

the use of final

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

HIBERNATE Calling Stored Procedure

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

tomcat performance tuning

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

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

Single cases of mode-related issues

Question: 1. Why is the use of Singleton pattern? 2. Singleton mode How do I create? 3. Singleton pattern thread-safety issue? @ Singleton pattern of the main advantages of 1. Eliminating the object c ...

Java's the difference between the Override Overload

override is overwritten, corresponding to the inheritance characteristics of OO programming, meaning that in the sub-classes override parent class method; overload is overloaded, corresponding to the ...

[js] using regexp to achieve replaceall

Js as a result of the String object only replace, but not replaceAll function, in the absence of awareness before the regexp is a string it is very difficult to all the objects are replaced one-time, ...

JAVASCRIPT four ways the definition of the object

The first to write a function, the following will be used several ways Factory methods First create the object, and then add properties and methods, do not need to use NEW to create objects, If the fu ...

cookies keep javascript operation (settings). read. delete function Detailed examples

Previously been thought to be generally carried out in the JavaScript operation COOKIES, but encountered today, it also made you, as a collection of it, the following are a few features of these were ...

Acquaintance Hibernate (1)

Three months to write a C / C + + finally returned to the Java I love the ~ ~ originally wanted to continue to study the JSP ^ ^ But a friend recently asked me to help him make a final examination of ...

Hibernate Query - (HQL)

[Note] Because from space before, caused by unexpected token: from Query can return a value of any type of property or object, including the return type for a component (Component) of the attributes: ...

Flash frame dotted line solutions

Since an anti-Microsoft browsers Security update After, Flash web pages began to appear dashed frame shows Example of a Object that is the way Flash tag call to open IE browser (Firefox does not this ...

seam hibernate search the full demo

seam and hibernate search to achieve the perfect integration, if you own seam debug some of you demo. Will have tasted the sweetness of the seam, you have to fall in love with this thing. Which in the ...

javascript to determine whether the digital

http://www.yxl.cn/Info/20051231, 124813,7012. html isNaN function isNaN (expression: Object): Boolean Parameters, if the value is NaN (non-digital), then return true. This function can be used to chec ...

prototype's ajax

prototype's ajax

Chinese garbled Ajax problems and solutions

Scene: JQuery's ajax methods to use ajax to submit the request, the code is as follows: 1 $. Ajax (( 2 dataType: 'json' 3, type: 'POST' 4, url: 'http://localhost/test/test.do&# ...

JSON example (AJAX + STRUTS)

Some time ago to do a project using json, I take the time to write a struts + ajax + json examples. Ajax + json personal feel to a large extent reduces network and server IO, is a very good combinatio ...

js Function object & function calls

js objects and the function of the difference between function call: * Function object: Defines a function fun1 (p1, p2), the following form of function objects: fun1 fun1 () fun1 (1) fun1 (1,2) Note ...

Javascript fifth day

Articles about the js array of objects and methods. This chapter we talk about function first, and then to point combat. 1, function: is a definition of a function can call the js code on many occasio ...

JS Create Object

javascript object definition (2007-05-23 22:15:46) <script> </ script> tags: javascript Create Object Category: JavaScript Today, the company completed the task in the process, some inform ...

dwr / struts examples of the development of

Start by telling you about the structure of the application client page: demo.jsp used to display client interface service: DemoAction is a Struts sub-class of Action to control the conversion, DemoFa ...

WebWork and DWR integration

WebWork / Struts 2 DWR also provided with OpenSymphony ( www.opensymphony.com / webwork ) Framework developed by the integrated WebWork. With this support, you can remotely access their own WebWork Ac ...

Prototype analysis of the source

/ * * This document is asynchronous xmlhttp requests for a simple package * Prototytp carried out mainly to simplify, to the use of complex functions can use the prototype of ajax.js * External use, t ...

hibernate custom generator

hibernate custom generator

Java variety of paths and parameters

1.JSP access to current applications in the relative path and absolute path: Corresponding to the root directory of the absolute path: request.getRequestURI () Document's absolute path: applicatio ...

DWR obtain information session

Recently, we decided to adopt the project features Ajax technology, and finally adopted the DWR. In the use of the DWR, the face of the need to preserve access to the user session information. Interne ...

Hibernate + Spring + Struts2 + ExtJS development of CRUD functions

Favorites Hibernate + Spring + Struts2 + ExtJS development of CRUD functions 1, Getting Started: Various open-source framework for the environment and to download: Hibernate: 3.x http://www.hibernate. ...

Step-by-step learning Ruby (13): Ruby module

Class is subclass of Module, is a special form of modules, this can look at my article Step-by-step learning Ruby (5): Class, Module, Object, Kernel relationship . We know that the top of the class is ...

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

Guinness JQuery method

Dom: Attribute: $ ( "p"). addClass (css style defined type); to add an element of style $ ( "img"). attr ((src: "test.jpg", alt: "test Image")); to add an eleme ...

Double-click the production of hands-on experience running jar package

University of the past few days to help students graduating from a girlfriend to do a design, what kind of an inventory system what. Other estimates are not very familiar with the java command line, i ...

Rails questions every Monday (8): Security Guide (under)

In the last chapter and中篇described the attack on the session and other common attacks. Highlighted in the next into the attack. Injected to the site through the introduction of malicious code or malic ...

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

maven learning

1. The establishment of a project can use the following command: mvn archetype: create-DgroupId = demo-DartifactId = simple-DpackageName = testpackage-Dversion = 1.0 groupId for the logo, as the only ...

AJAX development brief (Part II)

Then return to the designated server when the client information is handled. Just the name of the handler assigned to the onreadystatechange property of XMLHttpRequest object it. For example: http_req ...

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

Learning Center MLDN the MVC design pattern

Today, access to the MVC design pattern, the Servelt, jsp, java bean relationship between a number of clear, but the development code so I felt quite trouble with the previous design study of the not ...

json in evalJSON () and parseJSON () how can not ah??

Get one of today Dongdong ajax, on the use json, but could not find a solution to the problem of their own Javaeye search in a case like me, but according to how the above methods can not ah? ? Post a ...

XMLHTTP object packaging technology

Ajax technology mainly depends on the realization of xmlhttprequest, but we call for its asynchronous data transmission, as is a short-term xmlhttp process (dealing with the incident after the complet ...

Hibernate query object Expression package introduced

Criteria Query is provided by the Hibernate object-oriented SQL statement expressed in a way. When we approach the use of JDBC to query the data will be written like this: select NAME FROM EMPLOYEE wh ...