JSF Navigation Question

Hello All,

I have a login.jsp page with a commandButton as follow.

<h:commandButton id="submit" action="success" value="Submit" />

When user clicks on the commandButton, I need to redirect to a Search.jsp page. For some reason it is not redirecting me to Search.jsp page. I am new & learning this technology and not sure what is wrong in this code. Appreciate any help.

<navigation-rule>

<display-name>login</display-name>

<from-view-id>/login.jsp</from-view-id>

<navigation-case>

<display-name>Search</display-name>

<from-outcome>success</from-outcome>

<to-view-id>/Search.jsp</to-view-id>

<redirect />

</navigation-case>

</navigation-rule>

[827 byte] By [MyJSFa] at [2007-11-26 18:13:21]
# 1
This sounds that there is an error (perhaps a required validation error?) on your login page.Try to put a <h:messages> component on the login screen.
UlrichCecha at 2007-7-9 5:46:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> <from-outcome>success</from-outcome>

> <to-view-id>/Search.jsp</to-view-id>

This means u have told it to navigate to Search.jsp if the outcome is "success". does the command button call any backing bean method and does it return success?

can u post the bean.

or remove <from-outcome>success</from-outcome> and try again(if u want to check only the navigation)

not very sure.im also new:)

kalania at 2007-7-9 5:46:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Read the code .. <h:commandButton id="submit" action="success" value="Submit" />

There is actually no backing bean method invoked ;)

But this should just work. Is this all been put in a h:form tag? Is the login.jsp actually put in the root: /login.jsp? And is the "S" in the /Search.jsp actually uppercased?

BalusCa at 2007-7-9 5:46:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...