Category Archive For "Mysql"
JAVA, JSF, MySql and Hibernate Login Project
This project uses MySql as database and Hibernate for Database operations. The Project structure in Netbeans, index.xhtml <?xml version=’1.0′ encoding=’UTF-8′ ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://xmlns.jcp.org/jsf/html”> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form> User Name <h:inputText value=”#{login_bean.user_name}”></h:inputText><br></br> Password <h:inputSecret value=”#{login_bean.password}”></h:inputSecret><br></br> <h:commandButton action=”#{login_bean.checkuser()}” value=”Submit”></h:commandButton> </h:form> </h:body> </html> success.xhtml <?xml version=’1.0′ encoding=’UTF-8′ …