Topic
The topic of this question is: JSF_navigation and database connection
Hello and Thank you in advance for any assistance.
System info:
Netbeans6.7.1,jsf1.2,two MySQL databases.(one for login one for searches)
The purpose of this post is:
Try to get the login
jsp to switch to the next page and understand how to connect to the database to simulate a login .
The functionality of this code is:
I have two databases one for login and one for finding contents of several music book records. Searches performed via artist or song. The first order of operation is Login.jsp which submits the user name “uid” (user Name and password are the same) and are validated simple uid>8 characters. Upon login the login.jsf page should navigate to the success.jsp or fail.jsp via faces-config file . The login.jsp submits to the controller, the controller calls the model to validate and connect to the splashbookdb_user database. that’s all for now.
(the design of the code does absolutely nothing now. I just can’t get the connection worked out.)
(
jsf pages,SplashbookController.java,SplashbookModel.java and Content.java (entity).
I will be updating the splashbook project periodically at:
http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/splashbookdb^_and^_netbeans^_project%20-%20Copy.zip
The errors related to this code are:
Error description: Mozilla firefox
Code description:faces-config.xml
Code description:login.jsp
Code description:SplashBookController.java
Code description:SplashbookModel.java
The Entities from db’s related to this code are:
User.java used to log in.
Usergroup.java used to log in and specify permissions.
Content.java used for searching.
Code description:Content
Code description:User.java(entity)
Code description:Usergroup.java(Entity class)
Thanks again.
-ceyesuma
[u]
Note:
________________________________________________________________________
Code description: