04 2016 档案

摘要:1.新建类 ActionWildCard,验证通配符的方法,如下图: 2.添加Student需要实践的两个方法 add,deete 3.添加Teacher需要实践的两个方法 add,deete 由此可得需要新建两个jsp页面用于显示运行结果 4.新建Studentadd_success.jsp:注意 阅读全文
posted @ 2016-04-06 09:36 邹菇凉 阅读(462) 评论(0) 推荐(0)
摘要:1.先创建 Struts_PathAction 继承至 ActionSupport ,设置execute()方法的返回值是"path"。 2.配置struts.xml文件,namespace的值设置为“”,action的name与result 一致,使之操作起来更加方便。 3.编辑index.jsp 阅读全文
posted @ 2016-04-06 09:22 邹菇凉 阅读(175) 评论(0) 推荐(0)
摘要:设置jdk版本的3个地方:1.在Windows下preferences选择java下的installed jres,在把jdk设置为1.6具体设置如下: 2.在Windows下preferences选择java下的compiler并把compiler compliance level设置为1.6,具 阅读全文
posted @ 2016-04-06 09:13 邹菇凉 阅读(231) 评论(0) 推荐(0)
摘要:1.struts 主要围着“action”,只要找到“action”它就知道自己该干嘛了。 首先配置struts.xml ,我们可以明白的看到,action name="index",而result 需要返回到一个界面“index.jsp”,具体代码如下: 2.修改“index.jsp” ,只输出一 阅读全文
posted @ 2016-04-05 10:32 邹菇凉 阅读(130) 评论(0) 推荐(0)
摘要:1.新建项目 struts,取名struts,点击finsh后,然后将之前项目下的jar包copy到该项目下。 2.新建packege action,new一个class StudentAction并继承至ActionSupport点击finsh。 3.打开StudentAction然后点击右键选择 阅读全文
posted @ 2016-04-05 10:21 邹菇凉 阅读(123) 评论(0) 推荐(0)