JSF - calling a method of the Bean after a <jsp:forward> -


my first .jsp (index.jsp) < jsp:forward page="/pages/homes.faces"> use framework jsf. now, need use bean show informations in home page don't know how call method initpage() in bean when < jsp:forward>.

can me ?

ps: see "< f:event>" don't use recent library apparently, so.. doesn't exist :-)

thanks in advance.

angy.

you can use ajaxforjsf , send js start event server. otherwise can use @postconstruct annotation gets called if bean created.

@postconstruct public void initpage() { // init page.. } 

Comments