JSP Java Tutorial

index.jsp


    
        Using Password Controls
    
 
    
        

Using Password Controls


        
            Please enter your password:
            
            

            
        
    

basic.jsp


    
        Reading Password Controls
    
    
        

Reading Password Controls


        <% 
        if(request.getParameter("password").equals("asdf")) {
            out.println("You're in!"); 
        } 
        else {
            out.println("I don't think so!"); 
        } 
        %>