• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf navigation and database connection  RSS feed

Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

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.




Code description:

James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!