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]

# 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:)
# 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?