package com.test.siddhu;
public class UserBean {
private int userID;
private String firstName;
private String lastName;
private String email;
private String firstName;
private String lastName;
private String email;
//This is Action method to add user
public String addUser() {
public String addUser() {
return "success";
}
}
public int getUserID() {
return userID;
}
return userID;
}
public void setUserID(int userID) {
this.userID = userID;
}
this.userID = userID;
}
public String getFirstName() {
return firstName;
}
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
this.lastName = lastName;
}
public String getEmail() {
return email;
}
return email;
}
public void setEmail(String email) {
this.email = email;
}
this.email = email;
}
}
2:- faces-config.xml
![Image_3](https://shdhumale.files.wordpress.com/2015/11/image_31.png?w=559)
![Image_4](https://shdhumale.files.wordpress.com/2015/11/image_41.png?w=559)
![Image_5](https://shdhumale.files.wordpress.com/2015/11/image_51.png?w=559)
Error
![Image_6](https://shdhumale.files.wordpress.com/2015/11/image_61.png?w=559)
Fill proper Data and click on Add customer Button
![Image_7](https://shdhumale.files.wordpress.com/2015/11/image_71.png?w=559)
![Image_8](https://shdhumale.files.wordpress.com/2015/11/image_82.png?w=559)
No comments:
Post a Comment