This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Navigation to Calling Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Navigation to Calling Page" Watch "Navigation to Calling Page" New topic
Author

Navigation to Calling Page

Aoife Kavanagh
Greenhorn

Joined: Feb 28, 2005
Posts: 16
I'm trying to solve a JSF navigation problem in as clean a manner as possible and I just thought I'd post and see if anybody else has developed or integrated with an existing application that has the same requirement.

Basically there's a JSP page that can be reached in a number of ways from different pages. All it is responsible for doing is retrieving data that is required by the calling page. When that page is left it should return to the calling page. A navigation rule can't be used because, as I said, any one of a number of pages might have called the page. It has been suggested that one approach might be to pass the calling page url on the Request and retrieve that when need to navigate back. But, we reckoned that we can't be the first people to encounter this problem so I was just wondering what other possible solutions might be viable (or if it is possible using JSF config other than via a navigation rule).

Thanks,
Aoife
Ravindra Rawat
Ranch Hand

Joined: Dec 09, 2004
Posts: 34
Hi Aoife,

Instead of a JSP to fetch data, can you use a servlet filter so you won't have to deal with navigation problems. You always request the JSF page you want and data is fetched in the filter.

Regards
Ravindra
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Navigation to Calling Page
 
Similar Threads
Why it is better then JSF?
Navigation Problem
Creating a custom scope... (kinda long)
how provide navigation rule and call servlet
Can I put the JSF pages in the WEB-INF folder?