wood burning stoves 2.0*
The moose likes Websphere and the fly likes Faces Redirecting issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Faces Redirecting issue" Watch "Faces Redirecting issue" New topic
Author

Faces Redirecting issue

Venkata
Ranch Hand

Joined: Sep 07, 2007
Posts: 37
Hi All,

Here is my problem.

I would like to restrict the users from being accessed the web pages directly once they are authorised.Without entering hte required information in one page user should not goto to the next page even though they type in the correct URL.To achieve this i am using filter.In my filter i am checking for an object from the faces context's session map.(i know filter can not access the Faces context directly so, i have a method to get the context).If the user tries to acce the URl directly my filter intercepting it and forwarding ot the required page.But always i am seeing the following error in the log. Can any body tell me why is this?
Note: I have gone through this discussion in different forums and some one suggesting to use context.responseComplete() statement before response.sendRedirect() statement , but it did not do any good for me.
Here is the log.



Thanks
Ven
Venkata
Ranch Hand

Joined: Sep 07, 2007
Posts: 37
And also, I am using another filter for redirecting the user from application context root/default.jsp to original home page and it is working fine without error in the log.(i did not use any statement before redirecting).I am guessing that since this is very first request made by the user and it did not even have the faces context yet, therefore it has been forwarded to another page with out error in the log.

Could any body has idea why is this working and not the above one?

Thanks
ven
Venkata
Ranch Hand

Joined: Sep 07, 2007
Posts: 37
Hi All,

I resolved my issue. The trick was instead of filters, i used phase listener.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Faces Redirecting issue