build.xml [11/11]java.lang.Class
Class c = myObject.getClass();
Class c = java.lang.String.class;
Class c = Class.forName("java.lang.String");
java.lang.reflect.Method
Method.invoke() the method
useBean JSP Action
id
scope
page
pageContext predefined variable
request
page
request predefined variable
application
ServletContext obtained by getServletContext()
session
session predefined variable
typeSpec options
class: the class
type: variable type
toString()
Ant
| C:\anttest>Ant Buildfile: build.xml does not exist!Build failed C:\anttest> |
build.xml [11/11]build.xml
| |
Let's do a very simple example
| class test1{ public static void main (String args[]){ System.out.println("This is example 1"); } }
|
| C:\anttest\example1>ant Buildfile: build.xml build: [javac] Compiling 1 source file to C:\anttest\example1\build\src BUILD SUCCESSFUL Total time: 4 seconds C:\anttest\example1> |