EL表达式用法总结

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>




Insert title here



${17+2}

${5==5}
${5 eq 5}
${4<5}
${4 lt 5}
&{3>2&&2<1}
${3>2and 2<1}
${3>2||2<1}
${3>2 or 2<1 }
${!(3>2)}

${empty p}
${a?b:c}

${name}

${requestScope.password}
<%-- <%
		pageContext.setAttribute("name", "zs");
		request.setAttribute("password", "123");
		Student s = new Student();
		s.setName("ls");
		request.setAttribute("s", s);
	%> --%>

${s.name }
${s["name"] }

${header["User-Agent"] }

${pageContext.request.contextPath }	

	


你可能感兴趣的:(EL)