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>
</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>
分享到:
相关推荐
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 ...
Starting from principles first, you’ll learn to design and launch a network, implement smart contracts in chaincode and much more. By the end of this book, you will be able to build and deploy your...
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-...
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!
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.
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!
NULL 博文链接:https://teddywang.iteye.com/blog/781059
conjunction with a color filter array (CFA), and then interpolate the missing color samples to obtain a three channel color image. This interpolation introduces specific correlations which are likely ...
Building a Controller to Communicate with a Windows Service 720 Summary 722 32 Remoting 724 Basic Remoting 724 Channels 735 Lifetime Management 738 Summary 741 33 Writing Traditional ...
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 ...
Motivates readers with a top-down, layered approach to computer networking Unique among computer networking texts, the Seventh Edition of the popular Computer Networking: A Top Down Approach builds ...
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. ...
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 ...
Distributed and Cloud Computing: From Parallel Processing to the Internet of Things, named a 2012 Outstanding Academic Title by the American Library Association's Choice publication, explains how to ...
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 ...
With a combination of new strategies, attacks, exploits, tips and tricks, you will be able to put yourself in the center of the action toward victory. The main purpose of this book is to answer ...
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 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 ...
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 ...