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"));
}
}
}

