OGNL、JSTL/EL表达式的用法
来源:互联网 发布:windows卡在欢迎界面 编辑:程序博客网 时间:2024/05/17 20:35
这是action
package cn.itcast.action;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionContext;
import cn.itcast.service.EmployeeService;
@Controller //employeeAction
public class EmployeeAction {
@Resource EmployeeService employeeService;
public String execute(){
ActionContext.getContext().put("employee", employeeService.list());
return "list";
}
}
这是jsp页面
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工列表</title>
</head>
<body>
GONL:
<br/>
<s:iterator value="#request.employee">
<s:property value="username"/> ,<s:property value="password"/> ,<s:property value="gender"/><br/>
</s:iterator>
<br/>
<a href="<s:url action="manage_addUI" namespace="/employee" />">员工添加</a>
<br>
JSTL/EL:
<br/>
<c:forEach items="${employee}" var="employees">
${employees.username},${employees.password},${employees.gender} <br/>
</c:forEach>
</body>
</html>
- OGNL、JSTL/EL表达式的用法
- EL,jstl,OGNL表达式
- JSTL、EL、OGNL表达式的区别
- struts标签,ognl表达式,el表达式,jstl表达式的区别
- 关于el表达式,ognl表达式,JSTL的区别
- EL,OGNL两种表达式的用法
- EL,OGNL, JSTL, STRUTS2标签中符号#,$,%的用法示例
- jstl,el,ognl的区别
- el表达式跟ognl表达式的区别(用法…
- JSTL与EL表达式用法
- JSTL与EL表达式用法
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- 有关Struts标签、OGNL表达式、EL表达式、JSTL标签库的一些事
- Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
- oSIP协议栈(及eXoSIP、Ortp等)使用入门(转)
- 2013Esri全球用户大会Q&A之移动产品
- android-ndk-r8d 编译 x264 方法
- js 使用金蝶ui中的gird组件 默认打对勾
- Android 自动化测试—robotium(三)EditText控件
- OGNL、JSTL/EL表达式的用法
- 在线代码托管工具
- C#菜鸟知识 -- 引用类型 与 值类型
- VB.net读写二进制文件
- linux驱动的等待队列
- 文件上传
- 通用高性能 Windows Socket 组件 HP-Socket v2.2.2 更新发布
- level-list显示不同的图片
- XCode工程中Targets