package com.oreilly.ajax;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class UserForm extends ActionForm
{
private String username;
private String firstName;
private String lastName;
public String getFirstName()
{
return firstName;
}
public void setFirstName(String firstName)
{
this.firstName = firstName;
}
public String getLastName()
{
return lastName;
}
public void setLastName(String lastName)
{
this.lastName = lastName;
}
public String getUsername()
{
return username;
}
public void setUsername(String username)
{
this.username = username;
}
public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.username = "";
this.lastName = "";
this.firstName = "";
}
}
|