JSF sendRedirect but not forward

I want to do a sendRedirect with JSF, instead of a forward, to avoid problem when clicking the navigator reload button.Is someone knows how to do this ?Thanks !
[181 byte] By [allready_possiblea] at [2007-10-2 5:13:26]
# 1

Please take the below:

String theURL = getUrlByPageName(pageName);

log.info(".... The URL for report link: <"+theURL+">.");

FacesContext faces = FacesContext.getCurrentInstance();

ExternalContext context = faces.getExternalContext();

HttpServletResponse response = (HttpServletResponse)context.getResponse();

response.sendRedirect(theURL);

Paul_Hua at 2007-7-16 1:16:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

add a <redirect/> tag to your navigation rules in faces config:

<navigation-rule>

<navigation-case>

<from-outcome>Entry</from-outcome>

<to-view-id>/jsf/entry.jsp</to-view-id>

<redirect/>

</navigation-case>

</navigation-rule>

nboudania at 2007-7-16 1:16:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hi. I want to ask how to make forward but not redirect from java code ?
amitteva at 2007-7-16 1:16:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...