testLogicBean1.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:0k
源码类别:

Java编程

开发平台:

Java

  1. <%@ page contentType="text/html;charset=ISO8859_1" language="java" %>
  2. <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
  3. <%
  4. String name="Tom";
  5. %>
  6. <logic:equal parameter="name" value="Tom">
  7.         热烈欢迎 <%=name%>
  8. </logic:equal>
  9. <br>
  10. <jsp:useBean id="bean4" scope="page" class="test.Person"/>
  11. <logic:greaterThan name="bean4" property="age" scope="page" value="18">
  12. 您的年龄大于18岁,建议独立谋生!
  13. </logic:greaterThan>