Link to home
Start Free TrialLog in
Avatar of SvenHJohansson
SvenHJohansson

asked on

question for kennethxu

Hi Kenneth!
I still feel daft for not giving you the points last time (applet / servlet communication) and since I have another problem, I thought I ask you personally this time as compensation :-) (I only have 20 points left though...)

I have written a servlet which tries to utilise other classes, for example the QueryHandler class (see below).

public class DatabaseHelper extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
        String qryparm = request.getParameter("id");
        int in = Integer.parseInt(qryparm);
        Vector myVec;
        QueryHandler myHandler = new QueryHandler();
        myVec = myHandler.idnumberQuery(in);


When I try to compile, the compiler tells me that it cannot find QueryHandler. QueryHandler's .class and .java files are in the same directory as DatabaseHelper.
What am I doing wrong?

Kind Regards
Sven Henry
ASKER CERTIFIED SOLUTION
Avatar of kennethxu
kennethxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SvenHJohansson
SvenHJohansson

ASKER

Thanks Kenneth,
adding the dir to javac did it.

Kind regards
Sven Henry
glad to know that and thanks for the points :)