In a JSP I have the following field:
<stripes:text name="email"/>
This field is in my action bean(snippet):
public class CreateClaim implements ActionBean {
private String email;
public void setEmail(String email) {
this.email = email;
}
public String getEmail() {
return email;
}
public Resolution alc(){
email = "poodle";
return new ForwardResolution("aForward.jsp");
}
}
In the alc() methos I am setting email to be null. But when the pages renders the value of the email field is exactly as it was entered originally. Is there a way of clearing this field once and event has triggered?
Cheers
Dave