File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf navigation and database connection" Watch "jsf navigation and database connection" New topic
Author

jsf navigation and database connection

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
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:


James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
Hello.
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.

Thanks
ceyesuma

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: http://aspose.com/file-tools
 
subject: jsf navigation and database connection