KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > test > EditAction


1 package com.test;
2
3 import com.opensymphony.xwork.ActionSupport;
4
5 import java.util.Date JavaDoc;
6
7 public class EditAction extends ActionSupport {
8     private String JavaDoc _userName;
9
10     public void setUserName(String JavaDoc name) {
11         _userName = name;
12     }
13
14     public String JavaDoc getUserName() {
15         return _userName;
16     }
17
18     public Date JavaDoc getNow() {
19         return new Date JavaDoc(System.currentTimeMillis());
20     }
21
22     public String JavaDoc execute() throws Exception JavaDoc {
23         return SUCCESS;
24     }
25 }
26
27
Popular Tags