理论上Struts 2.0的Action无须实现任何接口或继承任何类型,但是,我们为了方便实现Action,大多数情况下都会继承 com.opensymphony.xwork2.ActionSupport类,并重载(Override)此类里的String execute()方法。由JavaDoc可知...
分类:
其他好文 时间:
2014-08-26 09:41:45
阅读次数:
164
----2014.8.25日期类型转成刻度字符串select to_char(back_date,'DD-MM-YYYY HH:MI:SS') from BACKUP_SERVICE_LOG;insert into出错可以做Log记录EXECUTE DBMS_ERRLOG.CREATE_ERROR_...
分类:
数据库 时间:
2014-08-25 18:48:44
阅读次数:
243
1. Program -- > execute in background ---- >2. output device: MAIL ---- > PRINT OUT immediately3. setup the datetime schedule
分类:
其他好文 时间:
2014-08-25 16:20:04
阅读次数:
178
web.xml文件1中相同。
1)HelloAction类中的代码:
public class HelloAction {
public String execute() {
ActionContext ctx = ActionContext.getContext();
// 仅仅只是访问和添加三个范围属性使用该方法
// ctx.getApplication().put(...
分类:
移动开发 时间:
2014-08-24 10:20:52
阅读次数:
203
(reify DistributedRPC$Iface (^String execute [this ^String function ^String args] (log-debug "Received DRPC request for " function " " args " at " (Sy...
分类:
其他好文 时间:
2014-08-23 02:14:09
阅读次数:
221
HttpGet和HttpPost的使用步骤1. 创建HttpGet或HttpPost对象,将要请求的URL通过构造方法传入HttpGet或HttpPost对象。2. 使用DefaultHttpClient.execute方法发送HTTP GET或HTTP POST请求,并返回HttpResponse...
分类:
其他好文 时间:
2014-08-22 15:52:19
阅读次数:
154
1.TreeView选择事件执行两次Very often, we need to execute some code inSelectedItemChangeddepending on the selectedTreeViewItem. ButSelectedItemChangedis called...
分类:
其他好文 时间:
2014-08-21 19:12:24
阅读次数:
228
Action
Action是Struts中的基础组件。我们学过了Struts的执行流程,处理最终都会调到一个Action类;我们在Action中取得表单数据;进行业务逻辑处理;页面转发、传递等。
一、配置文件
二、Action代码
生成Action后,当被调用时,默认调用execute()方法。
type="struts.LoginActi...
分类:
其他好文 时间:
2014-08-20 22:44:13
阅读次数:
333
jQuery offers two powerful methods to execute code and attach event handlers: $(document).ready and $(window).load. Thedocument readyevent executes al...