www.pudn.com > struts2.rar > PointAction.java, change:2009-08-18,size:1152b


package com.test.action; 
 
 
import java.util.Date; 
 
import com.opensymphony.xwork2.ActionSupport; 
import com.test.bean.Point; 
 
public class PointAction extends ActionSupport { 
	 
	private Point point; 
	private Point point2; 
	private Point point3; 
	private String username; 
	private int age; 
	private Date date; 
	 
	public Point getPoint() { 
		return point; 
	} 
	public void setPoint(Point point) { 
		this.point = point; 
	} 
	public String getUsername() { 
		return username; 
	} 
	public void setUsername(String username) { 
		this.username = username; 
	} 
	public int getAge() { 
		return age; 
	} 
	public void setAge(int age) { 
		this.age = age; 
	} 
	public Date getDate() { 
		return date; 
	} 
	public void setDate(Date date) { 
		this.date = date; 
	} 
	 
	 
	public String execute() throws Exception { 
		 
		return SUCCESS; //AcitonSupport类中定义的常量,值为success 
	} 
	public Point getPoint2() { 
		return point2; 
	} 
	public void setPoint2(Point point2) { 
		this.point2 = point2; 
	} 
	public Point getPoint3() { 
		return point3; 
	} 
	public void setPoint3(Point point3) { 
		this.point3 = point3; 
	} 
	 
	 
 
}