Java EL 对象 `${pools}`
我正在尝试调整 PSI Probe 中使用的代码(或者更一般地说, PSI Probe 的想法)将在我公司的 Web 应用程序内部使用。我可以获得我想要做的大部分内容,但我已经陷入了一小部分代码 - “状态”选项卡。一列数据是线程的处理时间,我真的很想拥有这些数据,但我不知道它来自哪里。这是相关的片段:
<c:forEach items="${pools}" var="pool" varStatus="poolStatus">
<div class="poolInfo">
<h3>${pool.name}</h3>
<div class="processorInfo">
<span class="name">
<spring:message code="probe.jsp.status.processor.maxTime"/>
</span>
${pool.maxTime}
我无法弄清楚 pools
对象来自哪里!有人有此类事情的经验吗?谢谢!
I'm trying to adapt the code used in PSI Probe (or more generally, the idea of PSI Probe) to be used inside of my company's web application. I can get the majority of the portions of what I'm looking to do, but I have become stuck on one bit of code - the 'Status' tab. One column of data is the processing time for the thread, data I would really like to have, but I can't figure out where it is coming from. Here's the relevant snippet:
<c:forEach items="${pools}" var="pool" varStatus="poolStatus">
<div class="poolInfo">
<h3>${pool.name}</h3>
<div class="processorInfo">
<span class="name">
<spring:message code="probe.jsp.status.processor.maxTime"/>
</span>
${pool.maxTime}
I can't figure out where the pools
object is coming from! Does anyone have experience with this sort of thing? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看源代码(这是 Google 代码,Google 搜索速度非常快),
池被填充在
ListThreadPoolsController
仔细看看
ContainerListenerBean
显示
status.jsp
中列出的属性正在填充到
getThreadPools()
中方法Looking at the source code (this being Google code, a Google search works really quick)
the pools is being populated in the
ListThreadPoolsController
A closer look at
ContainerListenerBean
shows the properties which are listed in
status.jsp
are being populated in the
getThreadPools()
method一般来说,它可以来自两个地方。在 JSP 或 Filter 之前调用的 Servlet。检查所有过滤器以及映射到您要打开的 URL 的 servlet。
It can come from two places, generally. A Servlet that is invoked before the JSP or a Filter. Check all filters, and the servlet mapped to the url you are opening.