Tag Archive For "mysql"
How to populate options of h:selectOneMenu from database? JAVA JSF
The Project Structure in netbeans is shown Mysql Table Structure CREATE TABLE `categories` ( `sl_no` INT(11) NOT NULL AUTO_INCREMENT, `category_name` VARCHAR(50) NOT NULL DEFAULT ‘0’, PRIMARY KEY (`sl_no`) ) MySql Table Data 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” xmlns:f=”http://xmlns.jcp.org/jsf/core”> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form> …
Auto Back up Mysql Database without any Software
This tutorial shows how to take back up of a MySql Database without any software. This can be done by creating a scheduled task with a Bat file. Here is the Step by Step process for that. If you want to a auto back up Mysql database test_111 as shown below First we will check how …
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′ …