Home | Schulung | Beratung | Referenzen | Veröffentlichungen | Jobs | Sitemap | Kontakt

Erste Folie | Zurück | Weiter | Letzte FolieGrafikversion | Inhalt | Home

Beispiel ActionForm Klasse

public class LoginForm extends ActionForm {
private String passwd, username;
public String getUsername() { return username; }
public void setUsername(String aUser) { user = aUser; }
...
public void reset(ActionMapping mapping,
HttpServletRequest request)
{ username = ""; passwd = ""; }
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
return errors;
}
}