permaculture playing cards
The moose likes JSF and the fly likes jsf navigation and database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf navigation and database connection" Watch "jsf navigation and database connection" New topic

jsf navigation and database connection

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
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,, and (entity).

I will be updating the splashbook project periodically at:^_and^_netbeans^

The errors related to this code are:

Error description: Mozilla firefox

Code description:faces-config.xml

Code description:login.jsp



The Entities from db’s related to this code are: used to log in. used to log in and specify permissions. used for searching.

Code description:Content


Code class)

Thanks again.




Code description:

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
I am termnating this post
Due to the fact I am in way over my head. I have finally found some good study material.
I have summerized this new material in an excel file (a book from my study guide) if any one is interested in studing some jsf.
Any feed back on my study guide would be appreciated I am trying to polish it in order to build my own study guide some day.
I could use some help with that one.


jsf study guide page and or the entire study guide project
jsf study guide page and or entire study guide project
I agree. Here's the link:
subject: jsf navigation and database connection
jQuery in Action, 3rd edition