org.apache.tools.ant.taskdefs.optional.jsp

Class JspNameMangler

public class JspNameMangler extends Object implements JspMangler

This is a class derived from the Jasper code (org.apache.jasper.compiler.CommandLineCompiler) to map from a JSP filename to a valid Java classname.
Field Summary
static String[]keywords
this is the list of keywords which can not be used as classnames
Method Summary
StringmapJspToJavaName(File jspFile)
map from a jsp file to a java filename; does not do packages
StringmapPath(String path)
taking in the substring representing the path relative to the source dir return a new string representing the destination path not supported, as jasper in tomcat4.0 doesnt either

Field Detail

keywords

public static final String[] keywords
this is the list of keywords which can not be used as classnames

Method Detail

mapJspToJavaName

public String mapJspToJavaName(File jspFile)
map from a jsp file to a java filename; does not do packages

Parameters: jspFile file

Returns: java filename

mapPath

public String mapPath(String path)
taking in the substring representing the path relative to the source dir return a new string representing the destination path not supported, as jasper in tomcat4.0 doesnt either
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.