Mega Code Archive
JSP Simple Tags
///
/rntsoft
/WEB-INF/rntsoft.tld
// create File:rntsoft.tld in the /WEB-INF/
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!")}