
struts
小嘎子闯天涯
这个作者很懒,什么都没留下…
展开
-
Struts2配置详解_配置Action
Struts2的核心功能是action,对于开发人员来说,使用Struts2主要就是编写action,action类通常都要实现com.opensymphony.xwork2.Action接口,并实现该接口中的execute()方法。 该方法如下: public String execute() throws Exception Struts2并不是要求所有编写的act转载 2015-11-08 11:26:02 · 291 阅读 · 0 评论 -
request 的常用方法
request.getSchema()可以返回当前页面使用的协议,http 或是 https; request.getServerName()可以返回当前页面所在的服务器的名字; request.getServerPort()可以返回当前页面所在的服务器使用的端口,例如80; request.getContextPath()可以返回当前页面所在的应用的名字;原创 2016-12-27 10:13:40 · 419 阅读 · 0 评论