Jakarta Foundation Taglib HTTP Request Data Example


<%@ taglib uri="http://jakarta.apache.org/taglibs/foundation-1.0" prefix="fnd" %> <%-- Initialize http request data object --%>

HTTP Request Property names and values

Test of request and print tags

authType:           
contextPath:        
method:             
pathInfo:           
pathTranslated:     
queryString:        
remoteUser:         
requestedSessionId: 
requestURI:         
requestURL:         
servletPath:        
characterEncoding:  
contentLength:      
contentType:        
protocol:           
remoteAddr:         
remoteHost:         
scheme:             
serverName:         
serverPort:         

Test of isPresent and notPresent tags

Is pathInfo present: Yes No
Is requestURI present: Yes No

Test of areEqual tag

serverPort is equal to 8080
serverPort is equal to 80

Test of notEqual tag

serverPort is not equal to 8080
serverPort is not equal to 80

HTTP Request Boolean property names and values

Test of isTrue and isFalse tags

secure:                       YesNo
requestedSessionIdValid:      YesNo
requestedSessionIdFromCookie: YesNo
requestedSessionIdFromURL:    YesNo