| File | Line |
|---|
| be/m8n/struts/form/RegisterForm.java | 20 |
| be/m8n/struts/form/RolesForm.java | 16 |
private String password;
/** Second password property */
private String passwordTwo;
/** The username property */
private String username;
/** First name property */
private String firstName;
/** Last name property */
private String lastName;
/** The email address of this registrant. This is an optional property. */
private String email;
/**
* Method reset
*
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
password = "";
passwordTwo = "";
username = "";
firstName = "";
lastName = "";
email = "";
}
/**
* Returns the first password.
* @return String
*/
public String getPassword() {
return password;
}
/**
* Set the first password.
* @param password
* The password to set
*/
public void setPassword(String passwordOne) {
this.password = passwordOne;
}
/**
* @return Returns the passwordTwo.
*/
public String getPasswordTwo() {
return passwordTwo;
}
/**
* @param passwordTwo
* The passwordTwo to set.
*/
public void setPasswordTwo(String passwordTwo) {
this.passwordTwo = passwordTwo;
}
/**
* Returns the username.
*
* @return String
*/
public String getUsername() {
return username;
}
/**
* Set the username.
*
* @param username
* The username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return Returns the email.
*/
public String getEmail() {
return email;
}
/**
* @param email
* The email to set.
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return Returns the firstName.
*/
public String getFirstName() {
return firstName;
}
/**
* @param firstName
* The firstName to set.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* @return Returns the lastName.
*/
public String getLastName() {
return lastName;
}
/**
* @param lastName
* The lastName to set.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* @return This form as a <tt>String</tt>.
* @see java.lang.Object#toString()
*/
public String toString() {
return "[firstName=" + firstName + ", lastName=" + lastName
+ ", username=" + username + ", password=<hidden>, email="
+ email + ']';
}
} |
| File | Line |
|---|
| be/m8n/struts/form/RegisterForm.java | 50 |
| be/m8n/struts/form/UserForm.java | 92 |
}
/**
* Returns the first password.
*
* @return String
*/
public String getPassword() {
return password;
}
/**
* Set the first password.
*
* @param password
* The password to set
*/
public void setPassword(String passwordOne) {
this.password = passwordOne;
}
/**
* @return Returns the passwordTwo.
*/
public String getPasswordTwo() {
return passwordTwo;
}
/**
* @param passwordTwo
* The passwordTwo to set.
*/
public void setPasswordTwo(String passwordTwo) {
this.passwordTwo = passwordTwo;
}
/**
* Returns the username.
*
* @return String
*/
public String getUsername() {
return username;
}
/**
* Set the username.
*
* @param username
* The username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return Returns the email.
*/
public String getEmail() {
return email;
}
/**
* @param email
* The email to set.
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return Returns the firstName.
*/
public String getFirstName() {
return firstName;
}
/**
* @param firstName
* The firstName to set.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* @return Returns the lastName.
*/
public String getLastName() {
return lastName;
}
/**
* @param lastName
* The lastName to set.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
*
* @return
*/
public String[] getAddRoles() { |
| File | Line |
|---|
| be/m8n/struts/action/EditUserAction.java | 70 |
| be/m8n/struts/action/GetUserAction.java | 53 |
String string = request.getParameter("user");
// get the user
User user = null;
if (string != null) {
Integer id = null;
try {
id = new Integer(string);
} catch (NumberFormatException nfe) {
log.warn("Invalid user id specified!");
return mapping.findForward("failure");
}
UserDAO userDAO = new UserDAO();
try {
user = userDAO.getUser(id, true);
if (user == null) {
log.warn("User with id " + id + " not found!");
return mapping.findForward("failure");
}
log.info("User with id " + id + " found: " + user); |
| File | Line |
|---|
| be/m8n/struts/action/EditUserAction.java | 54 |
| be/m8n/struts/action/RemoveUserAction.java | 32 |
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
Enumeration enumeration = request.getAttributeNames();
while (enumeration.hasMoreElements()) {
String name = (String) enumeration.nextElement();
log.debug("attribute: " + name + "=" + request.getAttribute(name));
}
enumeration = request.getParameterNames();
while (enumeration.hasMoreElements()) {
String name = (String) enumeration.nextElement();
log.debug("parameter: " + name + "=" + request.getParameter(name));
} |