JSP Java

//File: index.html

    
        Getting Header Data
    
 
    
        

Getting Header Data


        
            
        
    

/////////////////////////////////////////////////////////////
//File: formAction.jsp

    
        Reading Header Information
    
    
        

Reading Header Information


        Here are the request headers and their data:
        

        <% java.util.Enumeration names = request.getHeaderNames();
        while(names.hasMoreElements()){
            String name = (String) names.nextElement();
            out.println(name + ":
" + request.getHeader(name) + "

");
        }
        %>
    

           
       
GettingHeaderDataJsp.zip( 89 k)