Struts home page action in jsf - How ?

I have another question when i convert a struts app to JSF.

The home page of the struts app was home.do where the home action class was checking some parameter in header and accordingly forwarding to relevant jsp pages.

How do i execute a managed bean before going to any jsp page and from there decide where the user will be forwarded ? When i give <xyz.faces> as my home page, jsf takes it to <xyz.jsp>

[437 byte] By [gdfgfdgdfa] at [2007-10-3 5:14:52]
# 1
For this approach you can use PhaseListener for RESTORE_VIEW phase and in the afterPhase method chech the viewId and navigate to the relevant page.
amitteva at 2007-7-14 23:21:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks, Do you have any sample code ? I have got a nice article in this regard ( http://blog.exadel.com/?p=19)
gdfgfdgdfa at 2007-7-14 23:21:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...