Forums Register Login

jsf DB access + sessions queries

+Pie Number of slices to send: Send
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 .
Please help me ..Because this is very first assignment in my first company.

And i Have to do it by tomorrow
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
Thank you very very much SIR.

I don't understand this quote.
I would rather talk with your lead/manager about your position and skills.


ok let it go...

I have one more queries that I have to creat two manage bean classes or one mangage bean class will enough.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.

Hope you understand my condition.

Thanks!
+Pie Number of slices to send: Send
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 ]
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1508 times.
Similar Threads
How to call JSF backing bean method from the Applet
Face managed bean in RAD7
display problem
Face Managed Bean
SEVERE: javax.faces.FacesException: java.lang.ClassCastException:
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:58:56.