一.Struts 2支持以下几种表达式语言: OGNL(Object-Graph Navigation Language),可以方便地操作对象属性的开源表达式语言:JSTL(JSP Standard Tag Library),JSP 2.0集成的标准的表达式语言:Groovy,基于Java平台的动态语言,它具有时下比较流行的动态语言(如Python.Ruby和Smarttalk等)的一些起特性:Velocity,严格来说不是表达式语言,它是一种基于Java的模板匹配引擎,具说其性能要比JSP好.…
Learn how to create an Immutable.Map() through plain Javascript object construction and also via array tuples. console.clear(); // Can be an object var map = Immutable.Map({key: "value"}); console.log(map.get("key")); //"value&quo…
class fun { public static void main(String[] args) { String str="java is an object oriented programming language"; String[] strs = str.split(" "); int sum = 0; for(int i=0;i<strs.length;i++) { sum += strs[i].length(); System.out.pri…
一>>原始类型与包装类型 先定义两个实体类User和Address User package cn.entity; public class User { private String name; private int age; private Address address; public Address getAddress() { return address; } public void setAddress(Address address) { this.address = add…