- 浏览: 203898 次
- 性别:
- 来自: 上海
最新评论
-
tcgdy0201:
挖!博主好棒!博主好腻害!
logback.xml immediate=false 到底缓存空间是多大 -
k1280000:
jasonlong10 写道 楼主别光写报错,有没什么解决方法 ...
SpringMVC 在 Jboss 下会报的 warn -
jasonlong10:
楼主别光写报错,有没什么解决方法啊?
SpringMVC 在 Jboss 下会报的 warn -
rtttyu23:
不错,没报错了...这些配置的文件真麻烦,不深入了解,配置的很 ...
Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initializa -
thinkcq168:
这样还是不可以,还是报错,我也有同样的错误,求高手!
Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initializa
文章列表
Struts2 Session 使用和安全
- 博客分类:
- SSH
When your Action class needs to access the HTTP session object implement
the SessionAware interface and override the setSession
method.
ps:
实现 SessionAware 的 setSession 方法得到 session,但是这里的session是Map型的,struts2框架会做Map 和HttpSession之间的转换。
public void setSession(Map<String, Object) session) {
...
Message Resource Files
- 博客分类:
- SSH
详见教程
message resource files 分三个层次
action --> package --> global
1. action
过此action后的页面,会自动加载跟action名字一样的properties文件。
2. package
包级别的 命名以package.properties 。
3. global
常用作国际化,在struts.xml里配置,整个应用级别的。
Servlet Struts2
init when the request arrive when the request arrive
lifecycle service exist in container ...
netbean 参考 http://www.omniprogrammer.com/?p=4#comment-56
以下是手动发布:
Download(准备工作):
download javapetstore-2.0-ea5-installer.jar
from <http://vdisk.weibo.com/?leftnav=1&wvr=4
>
download glassfish-installer-v2.1.1-b31g-windows.jar
from <http://glassfish.java.net/pub ...
httpd + tomcat
- 博客分类:
- httpd
http://wenku.baidu.com/view/405aa52c453610661ed9f47e.html
This section presents an extended example (Example 10-5
) of a module of module-related
utilities.
The Module.createNamespace( )
utility handles namespace creation and error checking. A module author might use
it like this:
// Create a namespace for our module
Module.createNamespace(&quo ...
// Create the global symbol "com" if it doesn't exist
// Throw an error if it does exist but is not an object
var com;
if (!com) com = {};
else if (typeof com != "object")
throw new Error("com already exists and is not an object");
// Repeat the creation and ...
Js code : utility
- 博客分类:
- JAVASCRIPT
/**
* defineClass( ) -- a utility function for defining JavaScript classes.
*
* This function expects a single object as its only argument. It defines
* a new JavaScript class based on the data in that object and returns the
* constructor function of the new class. This function handles t ...
// This class isn't good for much on its own. But it does define a
// generic toString( ) method that may be of interest to other classes.
function GenericToString( ) {}
GenericToString.prototype.toString = function( ) {
var props = [];
for(var name in this) {
if (!this.hasOwnPr ...
http://php.js.cn/blog/elance-freelancer-abc/
http://blog.jobbole.com/tag/elance/
https://www.elance.com/q/find-work/online-work-overview/
1.
As is probably clear, you simulate a class property
in JavaScript simply by defining a property of the constructor function itself to store a special 1x1 rectangle, you can do the following:
Rectangle.UNIT = new Rectangle(1,1);
2.
To define a class method
in JavaScript, simply make the ...
以一个最简单的例子把OO的JavaScript说明白
http://www.west263.com/info/html/chengxusheji/Javajishu/20080404/57075.html
学习Javascript闭包(Closure)
http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html
MySQL system variable
'max_allowed_packet'
is set to
1048576
Byte (1MB).
解决方法很简单
直接在my.ini文件最后加入以下内容:
max_allowed_packet=16M
OK,搞定。
reference from Apache Axis2
Generating the Service using XMLBeans
To generate a service using XMLBeans, execute the following
steps.
Generate the skeleton using the WSDL2Java utility by typing the
following in the Axis2_HOME/samples/quickstartxmlbeans
directory.
%AXIS2_HOME%\bin\wsdl2ja ...
对两个LIST对行比对,筛选
- 博客分类:
- JAVA BASIC
对两个LIST对行比对,筛选
以下两种方法比对中会发现用情况 (单位 ns)
CollectionUtils ListUtils
52354 811485
49659 790698
package com.collection;
import java.util.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.List ...