a example to demonstrate this problem: two jsp pages: hello.jsp: | <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> | | <HTML> | <HEAD> <title>Input Name Page</title> </HEAD> | <body bgcolor="white"> | <f:view> | <h:form id="helloForm"> | <h:commandLink value="Say hello" action="sayhello"></h:commandLink> | <h:commandLink value="Say hello2" action="sayhello"></h:commandLink> | </h:form> | </f:view> | </body> | </HTML> |
sayhello.jsp | <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> | | <f:view> | <h3> | <t:outputText value="hello"/> | </h3> | </f:view> | faces-config.xml: | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE faces-config | PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" | "http://java.sun.com/dtd/web-facesconfig_1_0.dtd"> | <faces-config> | | <navigation-rule> | <from-view-id>/test/hello.jsp</from-view-id> | <navigation-case> | <from-outcome>sayhello</from-outcome> | <to-view-id>/test/sayhello.jsp</to-view-id> | <redirect /> | </navigation-case> | </navigation-rule> | | </faces-config> | | web.xml: | <listener> | <listener-class> | org.apache.myfaces.webapp.StartupServletContextListener | </listener-class> | </listener> | <servlet> | <servlet-name>FacesServlet</servlet-name> | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | <load-on-startup>1</load-on-startup> | </servlet> | <servlet-mapping> | <servlet-name>FacesServlet</servlet-name> | <url-pattern>/faces/*</url-pattern> | </servlet-mapping> | | | <filter> | <filter-name>LogFilter</filter-name> | <filter-class>com.recency.XY0631.filter.LogFilter</filter-class> | </filter> | <filter-mapping> | <filter-name>LogFilter</filter-name> | <url-pattern>*.jsp</url-pattern> | </filter-mapping> | | then i did the following steps: 1, i visit hello.jsp in my internet explorer, the logger print "request url=.../hello.jsp" in console. 2,i click "Say hello" link , the page direct to sayhello.jsp , the logger print "request url=.../sayhello.jsp" in console. 3,i push "back" button on internet explorer, the page return to .../hello.jsp,the logger didn't print anything. 4,i click "Say hello" link , page didn't direct to sayhello.jsp ,the logger printed "request url=.../hello.jsp", (they acted as what they did in step 1) 5,i clicked "Say hello" link again, the page direct to sayhello.jsp ,the logger printed "request url=.../sayhello.jsp". why i hava to click "Say hello" link twice?(i have used tomcat instead, it don't hava this problem) is this a jboss's bug ?(i found the jbpm-starters-kit-3.1.2's default jboss server also have this problem) thanks for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985483#3985483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985483 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user