quot quot (RSS)

Construction butt (2)

For sending data encryption of data Need to send data encryption, MD5 encryption first, then encrypt the result will be converted in accordance with Appendix 1, see "China Construction Bank appen ...

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

On the struts-config.xml file

<? xml version = "1.0" encoding = "ISO-8859-1"?> <! DOCTYPE struts-config PUBLIC "- / / Apache Software Foundation / / DTD Struts Configuration 1.3 / / EN" " ...

Chinese garbled Java solution

Java-based programming, often encounter inside and display of Chinese characters at the problem, such as a lot of garbled or question marks. This is because the default encoding JAVA is UNICODE, while ...

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

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

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

Proficient in reading notes Hibernate

Generated Java classes Use the hibernate tools (hbm2java) Custom types associated with Achieve the UserType interface or CompositeUserType Interface Association expanding collection Chapter V complex, ...

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

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

Notes dwr.xml of learning dwr

dwr.xml is used to configure your DWR document, the default is to put WEB-INF folder. Create a document dwr.xml dwr.xml the following structure: <? xml version = "1.0" encoding = "UT ...

Javascript --- kind of inheritance

This article is reproduced in: http://ttitfly.javaeye.com/blog/194252 1. The first approach, posing as the way the object. (Using js in the name of each method is a Function object) Java code / / The ...

Js and other commonly used pages

1. Backspacke Disable document.onkeydown = function () ( if (event.keyCode == 8) ( event.cancelBubble = true event.returnValue = false; return false; ) ) 2. Prohibition of the status bar display conne ...

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

js version of the realization of String.format

Front-end development believe that friends are trained in this ordeal: the time to connect HTML was abhorrent single quotation marks, double quotation marks in a confused. For example: element.innerHT ...

JavaScript can achieve double-click to edit text

<! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/199 ...

javascript folder selection box two solutions

Solution 1: Call the windows of the shell, but there will be security issues. * BrowseFolder.js * The document defines the BrowseFolder () function, it will provide a folder selection dialog box * For ...

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

ext webwork + hibernate + spring crud ssh2 viewport layout of text

1.ext_viewport.jsp <% @ Page language = "java" contentType = "text / html; charset = UTF-8" pageEncoding = "UTF-8"%> <% @ Taglib prefix = "ww" uri = &q ...

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

Jetty datasource manually create

Datasource saw the establishment of official jetty code need web / inf below to create a new jetty-env.xml. However, this method is only suitable for the entire project in a complete package of the wa ...

rails find function

The situation: would like to Model parameters into the form of the find function, If args = (: limit => 10), the implementation of Model.find (: all, args,: join =>"..."), the introduc ...

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

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

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

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

ruby transcoding problem

What will the world look unified coding problem, not a switch. A waste of time, the old code to think things went. str = "the captain in April Capitães de Abril" str = Iconv.iconv ( "gb ...

lighttpd cloth web.py

The implementation of the document by adding # coding = utf8 #! / usr / bin / env python vim / etc / lighttpd / lighttpd.conf server.document-root = "" server.username = "" sudo vi ...

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

java Rcp absolute path and relative path of access to

1. The basic understanding of the concept Absolute path: absolute path is the home page of your files or directories on your hard drive the path of the real, (URL and the physical path) For example: C ...

js solution to the problem space

Remove the left control grid function LTrim (str) ( if ((typeof (str)! = "string") | |! str) return ""; return str.replace (/ (^ \ s *) / g, ""); ) Remove the right of co ...

Step-by-step learning Ruby (8): string expression

Ruby, the built-in many ways the operation of the string the following, we take a look at some of the most important methods Connection string Multiplication can be done on the string String Compariso ...

Step-by-step learning Ruby (9): Ruby Regular Expression (I)

Recommend a first-line Ruby regular expression editor http://www.rubular.com/ Ruby's regular expressions of "/ /" as the constructor. Expression of the target returns a RegExp. General r ...

ExtJS environmental structures

With the development of the computer, RIA (rich Internet applications) is also a popular inevitable in a large number of RIA implementation, ExtJS is doing quite well. Javascript to write ExtJS is mai ...

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

Ruby notes - first day

Notes # .. Local variables, method parameters, method name: lower case letters at the beginning or at the beginning of global variable * _: $ Instance variables: @ (the back can not compete directly w ...

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

妙用javascript (1)

1: in the vicinity of the complex FRAME page to OPEN a form (of course you do not have what parent.parent)   function checkuser (name) ( window.open ( "about: blank", "zhutong", &# ...

Personal Summary

1, in the demand for the design: I usually reference a "needs survey" work, and then confirm the demand for further specification writing, so there will not be too much deviation. I tend to ...

For js in startWith and the expansion of endWith

<script language="JavaScript"> function closeUl (code) ( alert (code); var list = document.getElementsByTagName ( "li"); for (var i = 0; i <list.length; i + +) ( var curLi ...

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

JAVA Design Pattern

7, BRIDGE: morning encounter MM, would like to say Good morning, met at MM, to say good night; encountered MM wearing new clothes, your clothes say Oh pretty good, so get a new hairstyle MM, that your ...

javaScript to only some special combination of input strings to verify

Because of the need to help my colleagues today to write a request to verify the following front js code: 1) the number of commas, "-" the three symbols 2) to the number at the beginning and ...

div layer by layer to cover the settlement of flash

Today received a single bug, saying that the drop-down menu flash charts were covered live. Solution is to add a swfobject parameters: transparent solved. Swfobject2.0 does not exist for IE and FireFo ...

Hibernate object status and operation of

Hibernate objects of three kinds of status, are as follows: the instantaneous state (Transient), persistent state (Persistent), detached state (Detached). In a persistent state of the object, also kno ...

Js solution to the Chinese characters

try ( SatQuestion satQuestion = (SatQuestion) convert (form); satQuestion.setPubtime (System.currentTimeMillis ()+""); this.satQuestionManager.saveSatQuestion (satQuestion); List list = satQ ...

js read xml file

<! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.0 Transitional / / EN"> <HTML> <HEAD> <TITLE> New Document </ TITLE> <META NAME="Generator" CONTEN ...

javascript achieve trim () function

javascript does not provide the trim () function, through the following regular expression to achieve trim () function; Principle: The realization of the principle of the trim () function if the strin ...

Ruby to learn a

Scratch the last few days, start to make better preparations for a look at Ruby's a few books. Such as the "Programming Ruby" "Ruby for Rails" "The ruby way" and so f ...

flex3.0 new features (2) --- AIR application upgrades, Flex 3.0 using Ajax technology

23.3 upgrade AIR applications AIR desktop application can be derived for the air file. Double-click the file will be able to start the installation application. If the system has been installed an ear ...

English configuration manual FckEditor details

Author: ruizhi date :2009-03-15 call javascript method: ------------------------------------ <script. type="text/javascript" src="FCKeditor/fckeditor.js"> </ scrīpt> &l ...