• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Predrag Ristic
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,I'll try!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic