Error

This is the code when i compile it i got Error message.

Pl Solve this problme & tell me why i am getting this problem

which is :-

import javax.servlet.*;

Dose not exist

import javax.servlet.http.*;

Dose not exist

import java.io.*;

import java.util.*;

import javax.servlet.*;

import javax.servlet.http.*;

import org.apache.struts.action.*;

public class QueryAction extends Action

{

public ActionForwardexecute(ActionMapping mapping,

ActionFormform,

HttpServletRequest request,

HttpServletResponse response)

throws IOException, ServletException {

QueryFormqueryForm =(QueryForm) form;

Stringa = queryForm.getPassword();

Stringb = queryForm.getQuery();

if(a.equals("ADMINISTRATOR"))

{

System.out.println (" now in QueryAction ========");

sqlbeanbean1 = new sqlbean();

// business delegation

System.out.println("bean1 ready");

Stringr= bean1.getresult(b);

System.out.println ("function invoked on bean1");

System.out.println("value is..."+r);

resultbeanmathew = new resultbean();

System.out.println("mathew bean created");

mathew.setValue(r);

System.out.println ("value set for mathew");

String m = mathew.getValue();

System.out.println("verifying the value");

System.out.println(m);

System.out.println ("--ok -");

HttpSession session=request.getSession();

session.setAttribute("result",mathew);

System.out.println("attribute for 'result' set asmathew");

resultbeanbean=(resultbean)session.getAttribute("result");

System.out.println(bean.toString());

String v=bean.getValue();

System.out.println("verifying...."+v);

System.out.println ("now sending mathew to result.jsp");

return (mapping.findForward("success"));

}

else

{

return (mapping.findForward("failure"));

}

}

}

[2014 byte] By [myharshdesignera] at [2007-10-2 2:16:43]
# 1
You need to add the servlet-api.jar to your classpath.
MartinHilperta at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
hai servelets is not included in Core Java package ?& from where i can get that API ?LINK PL
myharshdesignera at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
[url= http://java.sun.com/webservices/jwsdp/index.jsp]Java Web Services Developer Pack[/url]
MartinHilperta at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4
thanks for your time dear.i have downloaded servlet file from here http://java.sun.com/products/servlet/2.2/now i have Version 2.2in this Download class files package there is only one file servlet.jar now hot to install that file can u tell me
myharshdesignera at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5
You just download servlet.jar and include it in the compilation's class path.
BIJ001a at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 6
Thanks dear> You just download servlet.jar and include it in the> compilation's class path.
myharshdesignera at 2007-7-15 20:09:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...