Declare your backing bean as a <managed-bean>, using a <managed-bean-name> value that can be mapped from the view identifier. (See DefaultViewControllerMapper for the details of the default mapping.) In nearly all circumstances, you will want the bean to be placed in request scope.
In which xml should i define the managed-bean and the view its mapped to? -- Seeing is believing