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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
glad to know that and thanks for the points :)
ASKER
adding the dir to javac did it.
Kind regards
Sven Henry