0 Replies Latest reply on Apr 11, 2008 8:00 AM by dobbo

    JSP and Web Forms

    dobbo

      I'm using JBoss-4.0.5.GA, JSP and Beans to enter and validate user entry on a XHTML form (via post). I seam to remember reading that when the form data is submitted the Jboss could be made to automagiclly submit the data in the request to the validator bean. If so how? I've tried the following but the setter method is not called.

      public class ValidatorBean {
      
       private String location;
      
       public ValidatorBean() {
       location = "nowhere";
       }
      
       public String getLocation() {
       return location;
       }
      
       public void setLocation(String txt) {
       location = txt;
       }
      
       public void setLocationString(String txt) {
       setLocation(txt);
       }
      }