![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSH
sunshine_shuzhou
2018电子科技大学硕士毕业,目前在阿里云->专有云->工程效率团队任职
展开
-
struts.xml配置之动态调用与通配符
/DMI/user.jsp /DMI/useraddSuccess.jsp /DMI/userdelSuccess.jsp /wildcard/{1}_{2}Success.jsp原创 2014-02-12 14:11:00 · 789 阅读 · 0 评论 -
struts2 result type页面跳转方式介绍
查看官方struts-2.3.16官方doc中struts-defaultxml.html进行查询可以看到如下内容:原创 2014-02-13 14:49:43 · 1171 阅读 · 0 评论 -
Struts2中Action接收参数的方法
1.使用Action的属性接收参数 : a.定义:在Action类中定义属性,创建get和set方法; b.接收:通过属性接收参数,如:userName(可以定义多个属性); c.发送:使用属性名传递参数,如:user1!add?userName=jim; 2.使用DomainModel接收参数: a.定义:定义Model类,在Action中定义M转载 2014-02-12 13:41:12 · 531 阅读 · 0 评论 -
Struts2 Action访问web元素的四种方式
1: Map IoC 方式 package edu.uestc.test.action; import java.util.Map; import org.apache.struts2.interceptor.*; import com.opensymphony.xwork2.ActionSupport; public class UserAction1 extends ActionSup转载 2014-02-13 14:06:00 · 568 阅读 · 0 评论 -
struts2页面到action中date类型自动转换
在Java Web开发中,进行上述转换一般有以下几种: 1、在Servlet中,这一切的转换我们得自己写代码完成; 2、在Struts1.x中,我们通过apachecommons-beanutils中的converters来帮助完成这些事情; 3、在Struts2中,使用的则是基于ongl的类型转换; ……由于类型转换的通用性,因而Web框架都会实现大多数类型的转换功能,而不需要程转载 2014-02-13 17:20:28 · 1328 阅读 · 0 评论