随笔分类 -  java-struts2

struts表单提交
摘要:步骤: 1.创建一个form.jsp 2.撰写struts.xml配置文件; 3.创建action接收类: 阅读全文

posted @ 2018-06-28 19:18 Terlong 阅读(151) 评论(0) 推荐(0)

struts2 servlet前后台数据交互
摘要:1.通过ActionContext: //Demo5Action.java //struts.xml 结果: 2.通过原生servlet: 3.通过实现ServletRequestAware的接口来实现: //Demo6Action.java 阅读全文

posted @ 2018-06-26 21:18 Terlong 阅读(200) 评论(0) 推荐(0)

struts中的重定向转发功能配置文件的撰写
摘要://Demo1Action.java //struts.xml 阅读全文

posted @ 2018-06-26 20:08 Terlong 阅读(466) 评论(0) 推荐(0)

struts2中action类的详解
摘要: 阅读全文

posted @ 2018-06-26 16:29 Terlong 阅读(91) 评论(0) 推荐(0)

struts2的default
摘要:1,default作用旨在当用户访问指定路径下的子路径不存在,进而做出和谐的提示: 2.Run result: 阅读全文

posted @ 2018-06-26 14:12 Terlong 阅读(120) 评论(0) 推荐(0)

struts2常见错误
摘要:1.There is no Action mapped for namespace [/] and action name [] associated with context path [/Struts2_test1]. 错误原因有两个: 1> 用户把struts.xml名字写错 2>把strut 阅读全文

posted @ 2018-06-25 19:31 Terlong 阅读(104) 评论(0) 推荐(0)

Struts2 environment(开发环境) to build(搭建) and framework introduce.
摘要:1.Download struts link address:https://struts.apache.org/download.cgi#struts2516 2.Struts2 version:struts 2.3.34 3.Development IDE:eclipse 2017 4.Stru 阅读全文

posted @ 2018-06-25 10:31 Terlong 阅读(156) 评论(0) 推荐(0)

导航