<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %> <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> Test struts logic-el Match Tags

Test struts logic-el Match Tags

<% pageContext.setAttribute("string", "String test value"); %> <%-- This isn't an exact parallel. With "bean:cookie", you can specify a default value. That would take another step with this. --%>
Test Type Variable Content Value Content Correct Value Test Test Result
Cookie / Any 0 contains <%-- The functionality of "logic:match" will eventually be available through a string function in the EL expression. --%> match notMatch missing
Cookie / End 0 ends with match notMatch missing
Cookie / Start 0 starts with match notMatch missing
Header / Any Mozilla contains match notMatch missing
Header / End Mozilla ends with match notMatch missing
Header / Start Mozilla starts with match notMatch missing
Name / Any value contains match notMatch
Name / End value ends with match notMatch
Name / Start value starts with match notMatch
Parameter / Any value1 contains match notMatch missing
Parameter / End value1 ends with match notMatch missing
Parameter / Start value1 starts with match notMatch missing
Property / Any FOO contains match notMatch
Property / End FOO ends with match notMatch
Property / Start FOO starts with match notMatch