Hello
hope you can help me with this: I'm working with j_security_check and have this problem
I have a profile page that must be restricted to any unloged user, so i add a security constraint in the web.xml file and works fine if i try to access by adress bar, this show me the login page perfectly ok
now the problem is that: In my index page example:
have a link
<h:commandLink action="user/Profile" />
this redirect me to profile page ok but the URL still the same
so j_security_check don't show the login page as far as i've seen j_security_check works with url and jsf don't and if in the profile page press a link to ex:myImages then now the url says:
Why is this happend? is there anyway to fix this ?? Thanks in advance
an alternative i've been using is put a like
<a href="user/Profile.xhtml" >Profile</a>
this show me the login page but if i go to the index.xhtml and press profile this don't find the page because redirects me to: