Tag Archive For "CRUD"
JSF MySQL CRUD Create Read Update Delete Project-JSF Tutorial Part 10
This tutorial shows a simple Create Read Update Delete project in Java Server Faces JSF. Mysql is used as database here and the IDE used is NetBeans Project structure in NetBeans Mysql Database Data DB_connection.java package com.chillyfacts.com; import java.sql.Connection; import java.sql.DriverManager; public class DB_connection { public static void main(String[] args) throws Exception{ DB_connection obj_DB_connection=new DB_connection(); …
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′ …