• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,I'll try!!!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic