• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Navigation Problem - URL not updated

 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple jsf webapp with the following navigation rule



and I also have a index.jsp which simply redirects to a.faces



Ok., here is my problem. When I goto http://localhost/jsfu it takes me to the http://localhost/jsfu/a.faces and the browser displays the url as "http://localhost/jsfu/a.faces".

I click on a command button on a.jsp which takes me to b.jsp. b.faces is displayed. BUT the address displayed in the browser is still "http://localhost/jsfu/a.faces".

I click on a link in b.jsp which takes me to b1.jsp. b1.faces is displayed. BUT the address displayed in the browser is "http://localhost/jsfu/b.faces".

Simply put, for some wierd reason its always displaying the previous page in the browser address bar. Anyone know why it might be doing this? By the way, I am using Apache Myfaces
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any one?
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this:



There was a very long thread trying to explain why and what happens when we redirect the page. I was not able to find the thread though. But that was the solution given and it works.
reply
    Bookmark Topic Watch Topic
  • New Topic