Hi,I have a problem with the homework 11 JSF-application. I don't know what is the source of the problem, i have two rules navigation, the first rule of navigation all works fine, but the second don't. This always send to the first page (Hobby.jsp to Address.jsp) and the correct must be Hobby.jsp to response.jsp.
Here i post the code of the files This is my faces-config.xml <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"> <application> <locale-config> <default-locale>en</default-locale> <supported-locale>de</supported-locale> <supported-locale>fr</supported-locale> <supported-locale>es</supported-locale> </locale-config> </application> <!-- Navigation rule --> <navigation-rule> <from-view-id>/Hobby.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/response.jsp</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/Address.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/Hobby.jsp</to-view-id> </navigation-case> </navigation-rule> <!-- BACKING BEANS --> <managed-bean> <managed-bean-name>AddressBean</managed-bean-name> <managed-bean-class>BackingBean.AddressBean</managed-bean- class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>minimum</property-name> <property-class>int</property-class> <value>5</value> </managed-property> <managed-property> <property-name>maximum</property-name> <property-class>int</property-class> <value>100</value> </managed-property> </managed-bean> <!-- Hobby bean --> <managed-bean> <managed-bean-name>HobbyBean</managed-bean-name> <managed-bean-class>BackingBean.HobbyBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> </faces-config> THIS IS THE Hobby.jsp <%-- Document : Hobby Created on : 9/10/2008, 11:21:45 AM Author : andack --%> <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http:// www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h3>What is your hobby!!</h3> <f:view> <form> <table border="0" cellspacing="3"> <thead> <tr> <td>Favorite Sport</td> <td><h:inputText value="#{HobbyBean.hobby}" id="abc" / ></td> <td><h:message style="color: red; font-family: 'New Century Schoolbook', serif;font- style:oblique;text.decoration:overline" id="errors1" for="abc"/></td> </tr> <tr> <td></td> <td><h:commandButton action="success" value="Send"/ ></td> <td></td> </tr> </thead> </table> </form> </f:view> </body> </html> And this is the backing bean HobbyBean.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BackingBean; /** * * @author andack */ public class HobbyBean { private String hobby=null; public String getHobby(){return this.hobby;} public void setHobby(String hobby){ this.hobby=hobby; System.out.println("Set hobby " + hobby); } } Thanks for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---