2012年12月3日
摘要: 今天介绍action之间的传值:通过在struts.xml文件中进行设置,并在最终的jsp页面中显示传递的值一、新建项目,并建立两个action,传值在这两个action中进行。 login.java 1 package com; 2 3 public class Login { 4 private String MyContent; 5 public String execute() { 6 this.setMyContent("123456789"); 7 return "chuandi"; 8 } 9 public Str... 阅读全文
posted @ 2012-12-03 20:55 架构师之路 阅读(544) 评论(2) 推荐(0) 编辑