Originally posted by Y Jadhav:
1.user enters inforamtion on firts.jsp page .
2.All data enter by him stores in DB .
3.Logout
4. When he login 2nd time ,Data from database fetches and displays on new page.
I'm very new to JSF even I don't know how to use sessions .
You don't need the session for this
I highly recommend to go through a decent JSF tutorial first to understand how JSF works.
1. Create a
JSP page with the desired JSF components representing the input form and a button. Also create a backing bean holding all properties representing the input values and an action method for the button. Declare the backing bean as managed bean in the request scope.
2. In the action method of the backing bean store the input values in the DB using a DAO class. The DAO class can use either
JDBC API or Hibernate or any database access API to your taste to interact between
Java and DB.
4. Create a backing bean which does this task in the constructor. Fetch the values from the DB using a DAO class. Create a JSP page with JSF components representing the output.
Please help me ..Because this is very first assignment in my first company.
Good luck with your career.
And i Have to do it by tomorrow
As you're already asking others for help instead of just reading the documentation and tutorials or asking your colleagues for help, I would rather talk with your lead/manager about your position and skills.