SringSring

Tuesday, 7 October 2014

Taglibs

STRUTS
bean
Cookie Retrieve the value of the specified request cookie.
define Define a scripting variable based on the value(s) of the specified bean property.
header Retrieve the value of the specified request header
include This tag has a function similar to that of the standard <jsp:include> tag
message Retrieves an internationalized message for the specified locale, using the specified message key, and write it to the output stream
page Retrieve the value of the specified item from the page context for this page
write Retrieve the value of the specified bean property, and render it to the current JspWriter as a String by the ways:
HTML
  base  Renders an HTML <base> element with an href attribute pointing to the absolute location of the enclosing JSP pag
  button  Renders an HTML <input> element of type button, populated from the specified value or the content of this tag body
  cancel  This tag is only valid when nested inside a form tag body.
  checkbox  HTML <input> element of type checkbox,
  errors  Displays a set of error messages prepared by a business logic component and stored as an ActionMessages object, an ActionErrors object, a String, or a String array in any scope
  file  Renders an HTML <input> element of type file,
  form  Renders an HTML <form> element whose contents are described by the body content of this tag
  frame 
  hidden  Renders an HTML <input> element of type hidden
  html  Renders an HTML <html> element with language attributes extracted from the user's current Locale object
  image  Renders an HTML <input> tag of type "image". 
  img  Renders an HTML <img> element with the image at the specified URL. Like the link tag
  javascript  Render JavaScript validation based on the validation rules loaded by the ValidatorPlugIn
  link   hyperlink to the specified URL
  param  <html:frame>html:link> <html:rewrite>
  messages  Displays a set of messages prepared by a business logic component and stored as an ActionMessages object
  multibox  Renders an HTML <input> element of type checkbox
  option 
  options 
  optionsCollection 
  password  Renders an TML <input> element of type password.
  radio  Renders an HTML <input> element of type radio
  reset  Renders an HTML <input> element of type reset.
  rewrite 
  select  Renders an HTML <select> element,
  submit  Renders an HTML <input> element of type submit.
  text 
  textarea 
  xhtml
LOGIC
 empty 
 equal  Compares the variable specified by one of the selector attributes against the specified constant value
 forward  Performs a PageContext.forward() or HttpServletResponse.sendRedirect()
 greaterEqual  Compares the variable specified by one of the selector attributes against the specified constant value. 
 greaterThan  Compares the variable specified by one of the selector attributes against the specified constant value. 
 iterate  Repeats the nested body content of this tag once for every element of the specified collection, which must be an Iterator, a Collection, a Map (whose values are to be iterated over), or an array
 lessEqual 
 lessThan 
 match 
 messagesNotPresent 
 messagesPresent 
 notEmpty 
 notEqual 
 notMatch 
 notPresent 
 present 
 redirect
JSF
HTML <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
CORE <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

No comments:

Post a Comment