Steven Liu wrote:
> Hi, any one can tell me why I cant get the this example compiled out.
> code is at tomcat/webapps/examples/WEB-INF/classes/RequestParamExample.java
> when I do javac RequestParamExample.java , get following output:
>
When you are compiling servlets yourself, you must ensure that the servlet.jar
file that came with Tomcat is visible on your classpath. Assuming that
TOMCAT_HOME points at your Tomcat installation directory, you can do this like
so (all on one line):
javac -classpath $TOMCAT_HOME/lib/servlet.jar:$CLASSPATH
RequestParamExample.java
>
> [EMAIL PROTECTED]
>
Craig McClanahan