This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
HTTP Status 403 - Access to the requested resource has been denied
Predrag Ristic
Greenhorn
Joined: Dec 07, 2009
Posts: 28
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
Thanks,I'll try!!!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: HTTP Status 403 - Access to the requested resource has been denied