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.
You was given a job assignment and you had only one more day to finish this. Instead of starting with it yourself, you desperately asked for help in a forum!! There's something seriously wrong and I would really talk about it with your project lead/manager.
Sir , I think you're getting wrong meaning with all this. --------------------------- There's something seriously wrong and I would really talk about it with your project lead/manager. ---------------------------
This is not only assignment I have to complete in one day There were 3 more tough assignments and I had done all these. One of it was completed with your help. And you are thinking that there is something wrong in my position or company that's really big misunderstanding with , OK . But don't stop helping me sir, I need you for my fastest growing carrier.
No, really not. It look like that you're underskilled (this all is fairly trivial) and/or that they expected too much from you (either you lied during job interview about your skills or you've a really poor employer who doesn't support you at all). You're almost bowing on your knees for help here by stating 'please, please, please' and putting pressure to us by stating 'urgent!!' or giving a deadline. That can't be that good. [ December 21, 2008: Message edited by: Bauke Scholtz ]