URL does not update when navigating to next page - in JSF

Add a

<redirect />

after the

<to -view-id></to>

example:

<navigation -case>
   <from -outcome>ok</from>
   <to -view-id>/welcome.jsp</to>
   <redirect />
</navigation>
 

What it does:

The jsp container terminates the current HTTP request and sends a HTTP Redirect.
hence it should be noted that all the data in request scope will be lost.



About this entry