`
leng_cn
  • 浏览: 301886 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Exposing webwork objects to JSTL, with a JSTL and

阅读更多
WebWork - WebWork - Exposing webwork objects to JSTL, with a JSTL and DisplayTag Example
<ww:set name="jobz" value="jobs" scope="request" />
The full example below shows a webwork variable "jobs" being exposed as "jobz" to the request scope and being used with jstl and the display tag.

<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tlds/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tlds/displaytag-el-12.tld" prefix="display" %>
<%@ taglib uri="/WEB-INF/tlds/webwork.tld" prefix="ww" %>

<ww:set name="jobz" value="jobs" scope="request" />

<h1><fmt:message key="title.listAllJobs"/></h1>
<display:table name="jobz" class="simple" id="row" >
  <display:column  titleKey="label.global.actions" >
  <c:url var="viewurl" value="/viewJobDetail.action">
<c:param name="name" value="${row.name}"/>
  <c:param name="groupName" value="${row.group}"/>
</c:url>
  <c:url var="exeurl" value="/viewJobDetail.action">
<c:param name="name" value="${row.name}"/>
  <c:param name="groupName" value="${row.group}"/>
  <c:param name="executeJobAction" value="execute"/>
</c:url>
  <c:url var="editurl" value="/viewJobDetail.action">
<c:param name="name" value="${row.name}"/>
  <c:param name="groupName" value="${row.group}"/>
  <c:param name="editAction" value="edit"/>
</c:url>
<a href='<c:out value="${viewurl}"/>'><fmt:message key="label.global.view"/></a> |
<a href='<c:out value="${editurl}"/>'><fmt:message key="label.global.edit"/></a> |
<a href='<c:out value="${exeurl}"/>'><fmt:message key="label.global.execute"/></a> &nbsp;
  </display:column>

  <display:column property="group" titleKey="label.job.group" sortable="true"   />
  <display:column property="name" titleKey="label.job.name" sortable="true"  />
  <display:column property="description" titleKey="label.job.description" />
  <display:column property="jobClass" titleKey="label.job.jobClass" sortable="true"  />

</display:table>

分享到:
评论

相关推荐

    Object-Oriented Analysis and Design 第六章

    Object Oriented Analysis and Design 13Structural Design PatternsStructural patterns deal with organizing classes and objects to form larger structures, often by combining them in some way. - Adapter ...

    Exposing .net Components to Com

    标题中的“Exposing .NET Components to COM”是指将.NET框架中的组件暴露给组件对象模型(Component Object Model,简称COM)的技术。这在.NET Framework诞生初期,为了与已有的大量基于COM的系统集成,是一个常见...

    Just a Dummy Python API created using Flask and exposing metrics

    Just a Dummy Python API created using Flask and exposing metrics

    Getting MEAN with Mongo, Express, Angular, and Node(Manning,2015)

    Writing a REST API: Exposing the MongoDB database to the application Consuming a REST API: Using an API from inside Express PART 3 ADDING A DYNAMIC FRONT END WITH ANGULAR Adding Angular components to ...

    Seamless R and C++ Integration

    Sugar takes advantage of lazy evaluation and expression templates to achieve great performance while exposing a syntax that is much nicer to use than the equivalent low-level loop code. The Rcpp-...

    RxSwift: Reactive Programming with Swift v2.0 (pdf+epub+code)

    By the end of this book, you’ll have hands-on experience solving common issues in a reactive paradigm — and you’ll be well on your way to coming up with your own Rx patterns and solutions!

    mime-dir-j-vcard4j-1.4.1-project.zip_VCard xml java_objects

    A Java API binding of the IETF Mime-Dir and vCard ... This package defines implementation neutral Mime-Dir and vCard Java interfaces for exposing data objects corresponding to those defined by the RFC s.

    RxSwift: Reactive Programming with Swift, 2nd Edition

    By the end of this book, you’ll have hands-on experience solving common issues in a reactive paradigm — and you’ll be well on your way to coming up with your own Rx patterns and solutions!

    CSharp 3.0 With the .NET Framework 3.5 Unleashed(english)

    - **A Quick Introduction to Reference Types and Value Types**: This section explains the fundamental difference between reference types (like objects and arrays) and value types (like integers and ...

    C#学习的101个经典例子

    Data Access - Retreive and Process data with a SQL Data Reader Data Access - Sort and Filter with a DataView Data Access - Use ADO 2.6 Data Access - Use Stored Procedures Data Access - Using Typed ...

    Python Cookbook, 2nd Edition

    Sorting a List of Objects by an Attribute of the Objects Recipe 5.4. Sorting Keys or Indices Basedon the Corresponding Values Recipe 5.5. Sorting Strings with Embedded Numbers Recipe 5.6. ...

    Modern.Python.Cookbook.epub

    You will get acquainted with the nuances of Python syntax and how to effectively use the advantages that it offers. You will end the book equipped with the knowledge of testing, web services, and ...

    Business Analytics for Managers

    It will allow managers to better interact with personnel specializing in analytics by exposing managers and decision makers to the key ideas and concepts of data-driven decision making. Business ...

    Go.Programming.Blueprints.2nd

    Interact with a variety of remote web services to consume capabilities ranging from authentication and authorization to a fully functioning thesaurus Develop high-quality command-line tools that ...

    Advanced API Security: Securing APIs with OAuth 2.0

    Advanced API Security is a complete reference to the next wave of challenges in enterprise security--securing public and private APIs. API adoption in both consumer and enterprises has gone beyond ...

    Mastering Machine Learning with Spark 2.x-Packt Publishing(2017).pdf

    Big data – that was our motivation to explore the world of machine learning with Spark a couple of years ago. We wanted to build machine learning applications that would leverag models trained on ...

Global site tag (gtag.js) - Google Analytics