wood burning stoves 2.0*
The moose likes Struts and the fly likes How to perform this in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to perform this in JSF" Watch "How to perform this in JSF" New topic

How to perform this in JSF

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

I am just playing with JSF 1.1 and I have the following questions :
I want to create an action listener (implementing javax.faces.event.
this listener will gets the parameter from the first jsf page (register.jsf), and insert these values into a database (ofcourse using JDBC).
but the problem is I dont know how to get these parameters in JSF.
any ideas how to perform this ?
I am using a JavaBean to store the values entered by the user, but how
to get this bean in the second jsf page ?
(I am new to frameworks like JSF and struts, so if you any ideas to how
to perform my requirments , please tell me. something like : don't use
action listeners to insert data into the database, use ...).
I appreciate your help because I realy loved JSF.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Lend your hand amigo, I need some help here, any one will help ??
James Holmes
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
Hi John,

You need to bind your JSF UI Components to your backing bean. This is done using the JSF tag library tags. When the form is submitted, JSF will take care of populating the bean for you. You can put the bean in either request or session scope. If in session scope, you can access the bean from multiple pages.

I recommend you link into some of the articls and tutorials on my website. They should give you tons of help.


I agree. Here's the link: http://aspose.com/file-tools
subject: How to perform this in JSF
Similar Threads
Populating Datatable from Database
Changing Views with navigation handler in java and sending params to the changed view
Can we Access FacesContext outside FacesServlet
Migrating my app to JSF
Cannot perform SQL UPDATE null