I have an existing struts demo application that I need to convert to jsf. I have a login page, that called and action (login.do) in my struts app, but how do I call this using jsf? Do I need to have this in my faces-config.xml file? Second, in my struts app, I was using custom error messages for errors and I'm not sure how to do this using jsf. Below is the code I used in my struts app to tell the page which error to show:
errors.add("password", new ActionError("login.jsp.password.not.matched"));
I can give more code for any part of this request.