不带自定义类,只有jsp的struts2的例子
来源:互联网 发布:淘宝订单处理的流程 编辑:程序博客网 时间:2024/05/18 03:19
这个工程多不需要struts.xml,只需配置web.xml
<%@ page language="java" contentType="text/html; charset=utf-8"pageEncoding="utf-8"%><%@taglib uri="/struts-tags" prefix="s"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>西安小升初18802930979</title></head><body><%request.setAttribute("foo", "西安Java培训");%><s:textfield name="username" label="%{#request.foo}" /><p><s:select label="选择" name="name" list="{'姓名1','姓名2','name3'}"value="%{'name2'}" /><p><s:select label="label" name="name" list="#{'高新':'姬丽源', '西东大':'杨紫媛'}" /><div><s:if test="'foo' in {'foo','bar'}"> in collection</s:if><s:else> not in collection</s:else><s:if test="'foo' not in {'foo','bar'}"> not in collection</s:if><s:else> in collection</s:else></div></body></html>
原文:http://www.itinpractice.com/tutorials/407/struts-2-ognl-object-graph-navigation-language.html#.UaKNHbWnz58
源代码:http://pan.baidu.com/share/link?shareid=474440&uk=3878681452
references to Action properties can omit the # marker
- 不带自定义类,只有jsp的struts2的例子
- 不带struts2的纯OGNL的例子
- jsp自定义标签的例子
- jsp的自定义标签例子
- 骂人不带脏字的例子
- JSP自定义不带属性和标签体的简单标签
- jsp自定义标签处理器类----带属性标签的做法
- JSP自定义标签的简单例子
- jsp自定义标签的小例子
- 只有一个broker的例子
- JSP自定义标签(2):带属性的自定义标签
- struts2自带的例子作用和用法
- Tomcat 自带的例子分析(Jsp部分)(上)
- jqGrid(struts2+jdbc+jsp)增删改查的例子
- struts2 设置默认首页不带路径的形式
- [Struts2官方指南的个人学习和翻译] Struts2自带例子MailReader的学习
- [Struts2官方指南的个人学习和翻译] Struts2自带例子MailReader的学习
- JSP自定义标签(3):带标签体(body)的标签
- 前端框架—Bootstrap(一)
- linux 分析日志 数据
- 题目1467:二叉排序树
- DBunit
- sdnuoj1032 机器人
- 不带自定义类,只有jsp的struts2的例子
- Nginx 负载均衡 配置详解
- HDU-4545魔法串
- asp.net 网页中播放mp4文件,IIS中设置MIME类型
- 十个免费的Web负载/压力测试工具
- UVA1364 Knights of the Round Table
- GARP学习总结
- poj3009Curling 2.0(简单dfs)
- 20+个创意十足的斜线网站设计