login « Page « JSF Q&A





1. Login Page Error    stackoverflow.com

This is my login page

<h:outputText value="ENTER USERNAME" ></h:outputText>
<p:inputText value="#{treeBean.username}" id="user"></p:inputText>
<h:outputText value="ENTER PASSWORD" ></h:outputText>
<p:inputText value="#{treeBean.userpass}" id="pass"></p:inputText>
<p:commandButton value="GO"  action="#{treeBean.checkuser}" onclick="redirect()"></p:commandButton>
<script type="text/javascript">
function redirect()
{
window.location="/arcpage/arc.jsf";   
}
</script>
this is my treeBean.checkuser function
public void checkuser()
{
Connection con=null;
try
{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/", ...

2. Prevent accessing restricted page without login in Jsf2    stackoverflow.com

I have a problem. I want to prevent a user from accessing a page without login in jsf2. When a user directly write restricted page url into browser, s/he should not ...

3. Return to requesting page after resetting cookies in a login page in JSF2.0    stackoverflow.com

I am changing username and password cookies, how do I go back to the page from which the request was made after resetting the cookies? I am currently doing the following just ...

4. Login Page    coderanch.com

Ok. I have 3 jsp pages - login.jsp, a.jsp and b.jsp The user needs to authenticate himself (via login.jsp) before accessing a.jsp and b.jsp. Currently if i goto a.faces or b.faces (without logging in) i am presented with the page (populated with the default values for the backing bean). Instead, I would like to redirect the user to the login page. ...

5. error running a jsf login page    coderanch.com

6. Return to Login Page    coderanch.com

7. Login Page Problem    coderanch.com

8. Obtain resources from Login page.    coderanch.com