摘要: 先添加一个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... 阅读全文
posted @ 2008-10-08 11:49 魔豆 阅读(4187) 评论(0) 推荐(0) 编辑
摘要: 1.访问页面请求的参数 ${request.getParameter(name)} 或 ${name}:${request.getParameter(name)} 2.访问Session的内容 ${Session[name]} 3.获取struts2中s:component传递的参数的内容 ${parameters.name} 4.访问struts2中viewStack的内容 ${st... 阅读全文
posted @ 2008-10-08 11:43 魔豆 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2008-10-08 10:35 魔豆 阅读(3733) 评论(0) 推荐(0) 编辑