`
k1280000
  • 浏览: 203898 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
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

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

elance

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对行比对,筛选 以下两种方法比对中会发现用情况      (单位 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 ...
Global site tag (gtag.js) - Google Analytics