gt 2 (RSS)

Ruby [Hash method summary]

1. To add a default value Hash: h = (1,2,3,4) # => (1 => 2, 3 => 4) h.default = 7 h [1] # => 2 h [3] # => 4 h [4] # => 7 h [5] # => 7 二. Hash to add key-value pair: h = () # => ...

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

ajax get request parameters Chinese garbled solution

Prospects: 1, regist.jsp 2, ajax.js Background: 1, AjaxDemoAction.java (used DispatchAction) 2, EncodeUtil.java (transcoding type)

MyEclipse + Tomcat under the Web project development process automatically deployed

MyEclipse + Tomcat under the Web project development process in general, there are two automatic deployment methods: [Mentioned here refers to the automatic deployment of modified class file] (1) amen ...

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

ext webwork + hibernate + spring crud ssh2 Records

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

Topsy Ajax Six: Ajax user login

This will be the production of the reader to start from scratch with a AJAX Login DEMO, program features, business is very simple, so I do not need with you to explain things in this regard, we look a ...

JS read xml

JS read xml

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

Preface hibernate_00_

Will always feel that their own lot, in fact, nothing is working for a period of time found that in fact there are many needs to make up for a lot of knowledge, today, Hibernate, here to be a record e ...

JS date control

JS date control

java e-mail system (a) - mail server

Introduction and basic configuration James is an enterprise class mail server, it is fully realized, as well as smtp and nntp agreement pops (do not support IMAP). At the same time, james server is al ...

Facilitate a more general function of self-definition of Ajax

There is only one function on the Ajax, for example to call Test (), as a result of a function of JavaScript do not need to affirm the fixed parameters, to achieve dynamic access to transmission, the ...

struts2 + spring + hibernate integration configuration

struts2 + spring + hibernate configuration: 1, web.xml 2, applicationContext.xml The following is the text connected to upload the jar file

Prototype 1.6 of a web-based layout manager

Prototype 1.6 of a web-based layout manager, very easy to use. Prototype 1.6 applications based on the css classes, under the plan summarizes how to use the css: Is more or less, lm_top / lm_bottom, a ...

Think in Jquery

In most cases, we are faced with the background is: Designers of high, non-食人间烟火, only bound not to do, we must do, rather than the provision of methods and can reuse the API. Developers to solve the ...

Contact DWR

Demand is very simple to use js to the back-end request, then request the results get put into a select inside. One start is to request xmlrequest a groovy back-end of the url, get a xml, and then fil ...

JS implementation using copy / paste function

This article is from the Internet to collect me from organize. 1, the basic reproduction 2, the expansion of copy: Copy table 3, compatible with IE, firefox browser, such as a copy of

Struts, Spring, Hibernate Web application development 1

This article is taken from: http://www.blogjava.net/jacky9881/archive/2008/01/02/172076.html This Web application is very simple implementation of a user registration page, when users register at regi ...

Struts, Spring, Hibernate Web Application Development 2

This article is taken from: http://www.blogjava.net/jacky9881/archive/2008/01/02/172086.html 1. We have finished building the basic framework, then add the log function, simply amend the original web. ...

Struts, Spring, Hibernate Web application development 3

This article is taken from: http://www.blogjava.net/jacky9881/archive/2008/01/02/172088.html At two, we give this simple web application to increase transaction statement, statement of the original tr ...

Eclipse works the Oracle Database Configuration

Oracle database configuration Flex + Java project 1. A first step, the reference to "flex, step by step. Doc" files, set up felx works. 二. The second step, with reference to "set up spr ...

TOMCAT6 + SPRING + HIBERNATE JNDI data source configuration

This article carried: http://blog.chinaunix.net/u2/63740/showart_515514.html 1, in the context of context.xml inside tag add the following code: <Resource name = "jdbc / mysql" auth = &qu ...

Programming Ruby 2nd reading Notes 2

C05 Standard Types 1. String 2. Range 3. Regular Expression C06 Method 1. Variable parameters 2. Block 3. Hash Parameters 4. Lambda C07 Expressions 1. Overload operator 2. The implementation of orders ...

Ext Js use experience

Ext Js use experience 1. Using Ext add a pop-up window (components), the window (components) of the configuration object in the id and the page if the property on an element E of the id the same, the ...

Deal with the use of DWR callback function return a collection of the list and fill selec

1, configuration dwr.xml <? xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE dwr PUBLIC "- / / GetAhead Limited / / DTD Direct Web Remoting 1.0 / / EN" " ...

javascript examples cookie management

<script> / / Write cookies function Author:翟振凯 function SetCookie (name, value) / / two parameters, one is the cookie name, a value are ( var Days = 30; / / This cookie will be saved for 30 days ...

The use of CSS perfect way to achieve vertical center

The use of XHTML + CSS to achieve the vertical elements in the middle has been the front-end development of a more complex and difficult issue, as web designer or front-end development engineers, the ...

spring + hibernate + struts integration of the three methods, I only spent a third can.

1. DelegatingRequestProcessor with spring replacement struts of the RequestProcessor. 1) not to set up in web.xml automatically loads the ApplicationContext in the struts-config.xml Zhongtong plug-in ...

spring + hibernate + struts themselves summed up approach.

In fact very simple and only required two steps: 1. In the web.xml file add the following code to load the spring configuration file. 2. In order to enable the Action to be Bean, Writing a BaseAction ...

Gem install will_paginate using methods

rails plugin will_paginate paging installation method My system is ubuntu. Steps are as follows: Set up at # will_pagiante on GitHub now add to my GitHub resources gem gem sources-a http://gems.github ...

Ruby Operators Summary

Personal sense of "Ruby Programming Language" is indeed a good book, it will have bits and pieces of the Ruby point up. Here, some of my experiences from their own point of Ruby language sch ...

Using JS to control the page calls a different style sheet

Studied some time ago to use JS to control page changes automatically when the browser calls the different styles of questions, ideally in the blue today, they also see a similar code, special excerpt ...

At ajax use url rewriting them to avoid exposure url

I remember the first interview, questions have to do together Noodles: jsp page using ajax which required the implementation, when necessary java call the url; at this time the problem is that if user ...

Ruby User's Guide>> Arrays

You can through the square brackets ([]) in a comma-separated listed some items to create the array. Ruby array can accommodate different types of objects. Like a string array can be as a link or dupl ...

Rails use of select

Assumptions have the following drop-down list box In the rails in the implementation of such a list box, you can use the following method 1) The use of select 2) Use select_tag 3) Use collection_selec ...

Pring Beanfactory at the jsp, servlet, web.xml and other configuration

Keywords: spring beanfactory Spring in the web application called the Beanfactory 1) Configure web.xml Java code <? xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE web ...

common event in js

/ / 1: onblur event occurs when the object loses focus function upperCase () ( var x = document.getElementById ( "fname"). value document.getElementById ( "fname"). value = x.toUpp ...

ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles

Keyword: ActiveMQ ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles At <<ActiveMQ实践之路(三) ActiveMQ 4.x +JBoss 4.x整合篇>> which we compare in detail the ActiveMQ w ...

SqlServer database connection pool to connect tomcat

First, install the JDBC Driver The database driver jar file to put (Tomcat_install) \ common \ lib directory Second, configure the Connection Pool 1. Overall connection pool configuration, Tomcat in a ...

rails string

Embedded string form; 1. <% = Link_to "section # (@ m) a view",: action => "show"%> 2.def hello (name) "Welcome, # (name)!" end 3.Post.find (: all,: conditions = ...

hibernate using c3p0 connection pooling

Private http://www.lifevv.com/tenyo/doc/20070605102040991.html c3p0 for open source's JDBC connection pool, with the release hibernate. This article describes how to use the hibernate configuratio ...

Process migration from tomcat to websphere changes

Process migration from tomcat to websphere changes Because customers use the web application server software used by different what tomcat5, tomcat6, websphere5.1, websphere6.1, weblogic8, and so on, ...