// create File:java2s.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">
//compile the following code into WEB-INF\classes\com\java2s
package com.java2s;
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="/java2s" prefix="java2s" %>
output:


No comments:
Post a Comment