Expresso TaglibsExpresso Taglibs is a custom tag library, including an Action, Input, and Error tag that make page design much easier and cleaner.
Expresso Components Listing |
|||||||||||||||
IntroductionAll tags are currently in the com.jcorporate.expresso.ext.taglib package. These tags are fairly simple and work well. Give them a try. You will find that after you create one page with them, you will never go back to the old way. They make a HUGE difference! |
|
||||||||||||||
Tag Library DescriptorAlso included is the tag library descriptor, expresso.tld, under the /WEB-INF/ directory in CVS. If you have questions about which options are required, optional, etc., just scan the expresso.tld. This expresso.tld should be placed in your WEB-INF/ directory. Then, edit your web.xml file to include this: <taglib> <taglib-uri>/expresso</taglib-uri> <taglib-location>/WEB-INF/expresso.tld</taglib-location> </taglib> This is also done in the web.xml file in CVS. Quick usage:Include this at the top of the page: <%@ taglib uri="/expresso" prefix="expresso" %> and then the tags wherever you want them: Important NotesThe custom tags make some assumptions about how your jsp page is defined. One
important assumption is that your controller is called "controller" in the jsp
page (jsp:useBean id="controller" scope="session" class="myControllerClass"
/). If you have used an id in your usebean tag that is something other then
"controller", then you need to specify the controller name to each of your expresso
tags as an argument, like: <expresso:InputTag name="expresso.input.first_name"
controller="mycontrollername" /> Expresso Tag Library Summary |
|||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ActionTag - Renders an Expresso action, and associated hidden fields |
|
| AttributeTag - Displays an attribute from an Input or Output object | ||||||||
|
||||||||
|
| Back - Displays a "Back" button or image to go back to a page | ||||||||||
|
||||||||||
|
| Block - Acts as a container for child InputTag, OutputTag,TransitionTag and Block tags | ||||
|
||||
|
| config - Defines a scripting variable based on the specified values | ||||||||||||||
|
||||||||||||||
|
| ContentTag - Displays an Expresso Output element's Contents field. | ||||
|
||||
|
| Context - Inserts the web-app context | ||||
|
||||
|
| DBDescription - Displays the description text for the current DB context | ||||
|
||||
|
| DBMaint - Includes a row with calls to DBMaint for a dbobject | ||||||||
|
||||||||
|
| ElementCollection - Retrieves a collection of a controller elements that can later be iterated through using the ElementIterator tag | ||||
|
||||
|
| ElementIterator - iterates through each controller element inside a parent ElementCollection tag | ||||
|
||||
|
| ErrorMessages - Displays an Expresso Error Collection from the Message Bundle | ||||||
|
||||||
|
| ErrorTag - Displays an Expresso Error Collection | ||||||
|
||||||
|
| IfElementExists - Checks if a particular controller element exists. | ||||||||
|
||||||||
|
| IfErrorExists - Checks if the controller generated errors and stored it in the page context. | ||||
|
||||
|
| IfLoggedIn - Checks if a session is established and a valid user is logged in. | ||||
|
||||
|
| IfMemberOfGroup - Checks if the user logged in has access to the specified group | ||||||
|
||||||
|
| InputTag - Displays an Expresso Input Object | ||||||||||||
|
||||||||||||
|
| LabelTag - Prints the label of a controller element | ||||||
|
||||||
|
| Login - Tries to make the user log in. | ||||||
|
||||||
|
| output - Defines a scripting variable based on the specified values | ||||||||||
|
||||||||||
|
| OutputTag - Displays an Expresso Output Element. | ||||
|
||||
|
| RestrictAccess - Allows quick and dirty restriction of access to jsp pages. | ||||||||
|
||||||||
|
| session - Defines a scripting variable based on the specified values | ||||||||||||
|
||||||||||||
|
| setup - Defines a scripting variable based on the specified values | ||||||||||||||
|
||||||||||||||
|
| TableHead - Displays a pipe-delimited string as a table header | ||||||
|
||||||
|
| TransitionTag - Displays an Expresso Transition Button | ||||||||
|
||||||||
|
| TransitionParamsTag - Displays the parameters with an Expresso Transition | ||||||
|
||||||
|
| UserName - Displays the logged in user-name | ||||
|
||||
|
||||
ConclusionFor additional technical information about how to use taglibs, please refer to any of the below resources:
|
Copyright © 2001-2002 Jcorporate Ltd. All rights reserved. Copyright Privacy
Last Modified: 07-Oct-02 6:53:56 PM