Thank for the reply Nandini.I did all that and now my variables are set fine but when I compile the servlet using
"javac -classpath C:\ApacheSoftwareFoundation\Tomcat5.0\common\lib\servlet-api.jar:classes:. -d src\com\example\web\BeerSelect.java"
I get the following error messages:
"src\com\example\web\BeerSelect.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
src\com\example\web\BeerSelect.java:3: package javax.servlet does not exist
import javax.servlet.http;
^
src\com\example\web\BeerSelect.java:4: cannot resolve symbol
symbol : class io
location: package
java import java.io;
^
src\com\example\web\BeerSelect.java:6: cannot resolve symbol
symbol : class HttpServlet
location: class com.example.web.BeerSelect
class BeerSelect extends HttpServlet{
^
src\com\example\web\BeerSelect.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{"
And some more similar errors. Please advise me what to do and also tell me what does "...servlet-api.jar:classes:." mean in the above command.
thank you,
Suni.