Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Redirect in pages.xml using if condition

scott.stark@jboss.org

2007-03-28


I'd like to redirect the user to a different page if certain condition is not correct. I'm just wondering if the pages.xml is a right place to do it. I tried the following but it doesn't work:


|  <page view-id="/protectedPage.xhtml" login-required="true" conversation-required="true">
|    <navigation>
|      <rule if="#{empty authenticationSessionId}">
|        <redirect view-id="/authenticationPage.xhtml" />
|      </rule>
|    </navigation>
|  </page>
|

I'd appreciate for any help given.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032598#4032598

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032598
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.