Initial navigation rule

Hello,when the user enters my JSF page index.jsp, how can I do an immediate redirection to JSF page a.jsp or to b.jsp, dependent on logic in my managed bean (e.g. some bean method returning a boolean)?Thx
[225 byte] By [supert24a] at [2007-11-26 15:51:03]
# 1
This might be interesting: http://balusc.xs4all.nl/srv/dev-jep-djs.htmlYou can use such a construction with jsp:forward too.
BalusCa at 2007-7-8 22:11:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The link you provided I already visited. The solution there provided cannot be applied when you use e.g. JSF with JBoss Seam, where the "managed bean" is actually a session bean.

However a simpler question:

When my JSF page is loaded, how do I call a void method of my managed bean, returning nothing and doing only initialization work of the bean?

supert24a at 2007-7-8 22:11:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> The link you provided I already visited. The solution

> there provided cannot be applied when you use e.g.

> JSF with JBoss Seam, where the "managed bean" is

> actually a session bean.

I don't understand why this should be an issue. Which problems are you occurring?

> When my JSF page is loaded, how do I call a void

> method of my managed bean, returning nothing and

> doing only initialization work of the bean?

Just put the call in the constructor or an initialization block.

BalusCa at 2007-7-8 22:11:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...