<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
1,用link可以
<html:link action="/xxxx">demo</html:link>
光有link还不行,得有N多参数给送过去,
一) 在request里一大群参数过去了,
actionForm 会封装一部分[看你取名字了]
二)极少数情况,一些参数也要过去,
过去参数肯定要用的,大都会被 actionform 吃掉
实在要hardcoding参数,就<a href="/xxx/yyy.do?name=value&...
还有一些情况,参数已经在scope里了,
可以用<html:link action="/xxxx">demo</html:link>
<html:link action="/xxxx" paramId="差不多就是name吧" paramName="scope里面的东东,就是EL{里面的东东}">click me</html:link>
当然在scope里,不一定都是类似string的值,
那就要这样把类似string的东西拿出来
<html:link action="/xxxx" paramId="差不多就是name吧" paramName="scope里面的东东,就是EL{里面'.'号前面的东东}" paramProperty="EL{里面'.'号后面的东东">click me</html:link>
上面都是一个 name-value对,如果有N多怎么办??
用map,SUN规定的,没有为什么!!![当然,map就没有顺序了]
<html:link action="/xxaction" name="map"></html:link>[当然map要先放scope里]
同样,一个对象在scope里,他的一个 属性 是map 那就这样写:
<html:link action="/xxaction" name="scope里的名字,这个名字-->找到对象" property="这个是属性为map类型的 属性的名字">ddd</html:link>
分享到:
相关推荐
strut-cn.pdf
struts的crud sample demo(struts-crud.war) 可以直接解压查看代码,或者放到工程中运行
strut2简单登录功能实现,作为学习Struts2的资源,共享。
深入struts 深入struts 深入struts
Apache Struts 2.3.8 is an elegant, extensible framework for creating enterprise-ready Java web applications. It is available in a full distribution, or as separate library, source, example and ...
这是一个 Visio 形状的集合,Strut 使用这些形状在内部和为 cients 制作图表。 形状添加了锚点以方便使用 包括的形状 带有叠加层的 EC2 形状 EC2 EC2 API EC2 清漆 EC2 AEM(Adobe 体验管理器) EC2 傀儡大师 EC...
Struts2 框架源码、例子、jar包等全有,因为文件超过了60M所以就分享了个链接,永不关闭,放心下载
这个是spring框架 和 struts2框架 加上jpa集成项目范例 我的邮箱;348977787@qq.com
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
数据库方面,自行建一张表,可 参照sql语句里的查询建表,较为简单 仅提供源码学习,疑问请1657365348@qq.com
文件包含struts-tiles-14.pdf和validator-strut2-11.pdf教程。
strut2 登录strut2 登录strut2 登录
struts2-jquery-plugin-3.1.0.jar
strut-presentation-editor@googlegroups.com 开发/建设 要构建自己的Strut版本,您需要Grunt v0.4.0或更高版本。 安装最新的Grunt: npm install -g grunt-cli 克隆Strut: git clone git://github....
最大余量方法的C ++实现,用于在完全监督和半监督设置下预测结构化输出。
maven-web项目 Struts2 Struts注解 Struts2返回json
使用tomcat v5.0 eclipse3.7 jdk1.5实现strut1的用户简易登陆
strut2jar包
ssh(spring+strut1.x+hibernate)整合完整教程word版 附带包
strut1所需要的jar包。strut1所需要的jar包。strut1所需要的jar包