package org.wyona.yanel.impl.resources.contactform;

import javax.servlet.http.HttpServletRequest;

public class ContactBean {
    String company, lastName, firstName, address, city, email;
    public String message;
    
    public String getAddress() {
        return address;
    }
    public String getEmail() {
        return email;
    }
    public String getCompany() {
        return company;
    }
    public String getMessage() {
        return message;
    }
    public String getFirstName() {
        return firstName;
    }
    public String getCity() {
        return city;
    }
    public String getLastName() {
        return lastName;
    }
    public ContactBean(HttpServletRequest request) {
        company = request.getParameter("company");
        firstName = request.getParameter("firstName");
        lastName = request.getParameter("lastName");
        address  = request.getParameter("address");
        city  = request.getParameter("zipCity");
        email  = request.getParameter("email");
        message = request.getParameter("message");
    }
}

@@ -93,16 +93,63 @@
 quest;%0A%0A
+/**%0A * Bean containing contact information%0A */%0A
 public c
@@ -171,16 +171,24 @@
 n %7B%0A    
+private 
 String c
@@ -240,27 +240,9 @@
 mail
-;%0A    public String
+,
  mes

revert change of making message variable public in order to enforce using getMessage method