This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

jsf navigation and database connection

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