JSP Java

///
  

  /rntsoft
  /WEB-INF/rntsoft.tld

// create File:rntsoft.tld in the /WEB-INF/
  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
   "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    

  1.0
  1.2
  rntsoft Simple Tags
  
  
    ReverseString
    com.rntsoft.ELFunctions
    String reverse(String)
  

  

//compile the following code into WEB-INF\classes\com\rntsoft
package com.rntsoft;
public class ELFunctions
{
  public static String reverse(String param)
  {
    return new StringBuffer(param).reverse().toString();
  }
}
// start comcat and load the following jsp page in browser
<%@ taglib uri="/rntsoft" prefix="rntsoft" %>

  
    An Expression Language Tag
  
  
    output:
    

${rntsoft:ReverseString("Hello World from www.rntsoft.com!")}