It's not so much about replacing one or the other.
JSF is just JSP with MVC framework. Well, ok, I'm simplifying things a bit. But JSF is truly built off of JSP. It is legitimate to use both JSP and JSF tags on one page. However, may I STRONGLY caution that the JSF EL and the JSP EL do NOT play nice together.
I would recommend using JSF for as much as you can, and only using JSP when you have to. I think the pet store application has it backwards.
CowKing
...
> But JSF is truly built off
> of JSP.
JSF is not built off JSP. Look at Facelets (https://facelets.dev.java.net) or JSFTemplating (https://jsftemplating.dev.java.net) to see that JSF is quite happy (happier even!) when JSP is not part of the solution.
Ken Paulsen
https://jsftemplating.dev.java.net