permaculture playing cards*
The moose likes JSF and the fly likes HTTP Status 403 - Access to the requested resource has been denied 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 "HTTP Status 403 - Access to the requested resource has been denied" Watch "HTTP Status 403 - Access to the requested resource has been denied" New topic
Author

HTTP Status 403 - Access to the requested resource has been denied

Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
I'm trying to redirect user who attempts to open login page if there is a cookie indicating that he is already logged in but I'm getting this message:
"HTTP Status 403 - Access to the requested resource has been denied".
This is my manage bean:


Redirection attempt is in CheckUsernameCookie() method.
Any help or suggestion?
Bhuvnesh Phadnis
Greenhorn

Joined: Sep 10, 2004
Posts: 14
try using "/Prodavnica-seam/login_success.seam" instead of "/Prodavnica-seam/login_success.xhtml"

the suffix should be ".seam" and not ".xhtml"
Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
Thanks,that helped but now I'm having another problem.
This is login_success page:


At the line where should be the display of the username there is only a blank space (Successfully logged as).Do you know why?
Bhuvnesh Phadnis
Greenhorn

Joined: Sep 10, 2004
Posts: 14
Predrag Ristic wrote:



this line is returning null ...

check the spelling for each term ....

for this to work you need a method "GetCustomer()" on class "register_bean" and a method "getFirst_name()" on the object returned by "GetCustomer()"

your naming convention seems to have let you down here

ideally I would do this way...

the register bean ....


the customer bean ...


the jsf code ....


I hope this helps.

-Bhuvnesh
Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
Thanks,I'll try!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 403 - Access to the requested resource has been denied
 
Similar Threads
jsf and jstl
problem persisting an object with collections and manytomany relationship
actionlistener repeats
Cookie maxAge problem
javax.el.PropertyNotFoundException