由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 请教一个jsp的问题
相关主题
关于CMP问题What version of the Java Development Kit (JDKTM)
Servlet & Cookie 求助What are the design goals of the Enterprise JavaB
问一个弱智问题,关于调用package或者包的What specific services does a container provide f
请教获取URL地址的问题What are the transaction management benefits of t
who use JavaBean?What's the relationship between Enterprise JavaBe
Expression Language 里如何调用jdk函数?What's the relationship between the Enterprise Ja
JSP - Expression Language (EL)到底流行不?关于EJB
What is the roadmap for EJB technology?jBuiler 4白皮书(来自inprise网站)
相关话题的讨论汇总
话题: jsp话题: map
进入Java版参与讨论
1 (共1页)
a********n
发帖数: 369
1
一个jsp页面里的语句,看不懂
${packageSearch.models['packageColumnHeader'].packageColumnHeaderList}
请问以上这个语句是什么意思呢?调用packageSearch里面的models方法?在页面里没
有看到定义
packageSearch,是说这是个javabean?刚刚上班学了两天jsp,实在是不明白,请大家
指点啊!啥
都不会,工作压力好大……
h**********c
发帖数: 4120
2
大牛都不答,
俺来说说,
首先看看EL(EXPRESSION LANGUAGE)方面的知识,其次搞懂servlet,
总之,是scwcd方向的东东.
g*****g
发帖数: 34805
3
packageSearch is a bean available in your jsp context, typically put by your
web framework mapping a page. models is a map containing the dynamic data,
packageColumnHeader is a key name in the map, packageColumnHeaderList is a
field in the instance for the value that mapped to packageColumnHeader key
class PackageSearch{
Map models;
}
class PackageColumnHeader {
PackageColumnHeaderList packageColumnHeaderList;
}
models.put("packageColumnHeader", new PackageColumnHeader());
class BlahServlet {
PackageSearch packageSearch = new PackageSearch();
}
a********n
发帖数: 369
4
谢谢!

【在 h**********c 的大作中提到】
: 大牛都不答,
: 俺来说说,
: 首先看看EL(EXPRESSION LANGUAGE)方面的知识,其次搞懂servlet,
: 总之,是scwcd方向的东东.

a********n
发帖数: 369
5
太谢谢啦!明白多了!

your
data,
a
key

【在 g*****g 的大作中提到】
: packageSearch is a bean available in your jsp context, typically put by your
: web framework mapping a page. models is a map containing the dynamic data,
: packageColumnHeader is a key name in the map, packageColumnHeaderList is a
: field in the instance for the value that mapped to packageColumnHeader key
: class PackageSearch{
: Map models;
: }
: class PackageColumnHeader {
: PackageColumnHeaderList packageColumnHeaderList;
: }

1 (共1页)
进入Java版参与讨论
相关主题
jBuiler 4白皮书(来自inprise网站)who use JavaBean?
Re: 推荐推荐Expression Language 里如何调用jdk函数?
Re: 谁能谈谈EJB!!JSP - Expression Language (EL)到底流行不?
Please recommend Builder for JavaBeanWhat is the roadmap for EJB technology?
关于CMP问题What version of the Java Development Kit (JDKTM)
Servlet & Cookie 求助What are the design goals of the Enterprise JavaB
问一个弱智问题,关于调用package或者包的What specific services does a container provide f
请教获取URL地址的问题What are the transaction management benefits of t
相关话题的讨论汇总
话题: jsp话题: map