摘要:
先添加一个bean: Test1.java Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package test;public class Test1 { private String str; public String getSt... 阅读全文
摘要:
1.访问页面请求的参数 ${request.getParameter(name)} 或 ${name}:${request.getParameter(name)} 2.访问Session的内容 ${Session[name]} 3.获取struts2中s:component传递的参数的内容 ${parameters.name} 4.访问struts2中viewStack的内容 ${st... 阅读全文
摘要:
1.生成0~9之间的随机数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public static void main(String[] args) { Random rnd = new Random(); S... 阅读全文