I have 2 tables in a database, parents and memberparticulars resepectively.
parents is the table that contains parents data.
memberparticulars is the table that contains tutors data.
I'm trying to match parents' who has indicated subjects wanted, qualifications wanted from tutors to tutors who can teach that subjects and have the relevant qualifications.
My aim is to display the tutors' names, ID, contact number that fit the above criteria.
Hence, I created a separte servlet to do that.
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
con = DriverManager.getConnection("jdbc:mysql://localhost/tangara_member", "tangara_karen", "csw9l?xPJpXA");
String query = "SELECT FROM memberparticulars, parents WHERE memberparticulars.strSubjectsME = parents.strSubjects" && memberparticulars = "Degree holder";
out.write("<html><body><H3>Display list of tutors which match Parents' subjects and levels requested</H3>");
Many thanks.
Related Tutorials/Questions & Answers:
databasesdatabases i want to know the method of the
servlet class in which i should write the code for initializing the database connection together with an example of a code for initializing the database connection
Advertisements
databasesdatabases i want to know the method of the
servlet class in which i should write the code for initializing the database connection together with an example of a code for initializing the database connection
databasesdatabases i want to know the method of the
servlet class in which i should write the code for initializing the database connection together with an example of a code for initializing the database connection
databasesdatabases i want to know the method of the
servlet class in which i should write the code for initializing the database connection together with an example of a code for initializing the database connection
databasesdatabases i want to know the method of the
servlet class in which i should write the code for initializing the database connection together with an example of a code for initializing the database connection
Databases;
2)insertdata.jsp:
<%@page import="java.sql.*"%>
<%
String name
About MVC 2 architecture and jsp - JSP-Servlet in java.As
Servlet contains the pure
java code and coding is needed to generate...About MVC
2 architecture and jsp Sir,
I want to know about MVC
2... to use the tags with
java language. It is basically used for presentation
Java Captcha in Struts 2 ApplicationJava Captcha in Struts
2 Application
This
Java Captcha Example demonstrates you how to
develop a captcha
Servlet and use in your Struts
2 application.
Developing Struts
2
Captcha
java code 1 of 2java code 1 of
2 Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes
Hi Friend,
Visit
Moire Pattern 2 Java Moire Pattern
2 Java textWhat you are seeing in the screenshot...;
g2.setColor(Color.black);g2.fillOval(centerX, centerY - ovalWidth /
2, 300, ovalWidth... - ovalWidth /
2, 300, ovalWidth);g2.rotate(Math.toRadians(15),centerX,centerY
java code 1 of 2java code 1 of
2 Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes
Hi Friend,
Try
GUI 2 - Java BeginnersGUI
2 How can I modify this code? Please give me a GUI... world and like it alot. I was wondering where can I go to learn more about
java and C++. Hi You need not worry of where to go and learn about
java Java 2 micro editionJJava 2 micro editionJ Hello, i am using JCreator, for writing my J2ME program, after building the program, it keeps on given me the following errors:
package javax.microedition.midlet does not exist
package
task 2 - Java Beginnerstask
2 Write a time server that follows the time protocol outlined in RFC 868.
When a client connects, the server sends a 4-byte, big-endian, unsigned integer specifying the number of seconds that have passed since 12:00 A.M.
que 2 - Java Beginnersque
2 WAP to input a string & print out the text withthe uppercase & lowercase letters reversed,but all other characters should remain the same.
eg:
input:WelComE TO School
output:wELcOMe to sCHOOL Hi Friend
JAVA SERVLET - JSP-ServletJAVA SERVLET Log Hi, A
servlet file which create the log files ,then writing values to the list & log, we should have a thousand separator and no decimal values. This means instead of writing 986300.0 in the Log file
Switch databasesSwitch databases How do you inter-change between relational
databases without code changes
Servlet Interview Questions - Page 2
Servlet Interview Questions - Page
2
... method. Initialization is covered in Initializing a
Servlet.
2. The container... of
Servlet?
Answer: The interface javax.servlet.Servlet,
defines the three life
java servlet - JSP-Servletjava servlet hi friends,
Thanks in advance. Am poornima am created new
servlet in eclipse its open but without including any code am getting...,
Put
servlet-api.jar into the lib folder of apache tomcat server.
Thanks
java servlet java servlet im using ubuntu 12.04 and ialready installed eclipse but i dont know how to run the
servlet programs please give brief procedure to run the
servlet program in eclipse
Java servletJava servlet What is the difference between an applet and a
servlet Java Servlet - JSP-ServletJava Servlet Hello Sir
Could you help me in understanding directory Structure for
servlet page in eclipse (IDE).
I save my Sevlet in WEB-INF but it is not displaying, it is displaying code of
servlet.
Process used
OOP with Java 2 - Java BeginnersOOP with
Java 2 Define a class called BogEntry that could be used to store an entry for a Web log. The class should have member variables to store the poster's username, text of entry, and the date of the entry using the Date
Java 2 SDK, Standard Edition,Java 2 SDK, Standard Edition, Once I have the
Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database
Java 2 Micro Edition - MobileApplicationsJava 2 Micro Edition I meet difficulties to do my final project using J2me.It's about train ticket booking in mobile.Pls help on how to do this source code using j2me.Thank You
Java 2 Micro Edition - MobileApplicationsJava 2 Micro Edition I meet difficulties to do my final project using J2me.It's about train ticket booking in mobile.Pls help on how to do this source code using j2me.Thank You
executing java program with 2 classesexecuting
java program with
2 classes how to run a program of
java containing more than one class....ex of program is given below....
class C...);
}
}
Executing
java program with
2 classes
save the file with D.java
java 2 d array programjava 2 d array program write a program 2-d matrix addition through...[][] A = new int[
2][
2];
int[][] B = new int[
2][
2];
int[][] C = new int[
2][
2...]+" ");
}
}
System.out.println();
System.out.println("Sum of
2 matrices,Matrix C
object 2 string - Java Beginnersobject
2 string hi sir,how to convert object to string
and
how
2 compare object with null value to string with null value
plz provide a program 4 this sir,plzzzzzzzzz
arrays part 2 - Java Beginnersarrays part
2 Question
2: Useful Array Algorithms and Operations (5 marks)
Upgrade the program in Question 1 so that the program includes:
? A static method search() that:
o Has a parameter of integer array and another
returning doubles with 2 decimals JAVAreturning doubles with
2 decimals JAVA Hi all.
I'm writing a program where users input the cost of an item (in the constructor), so for example,
Item (string name, double cost, int qty) { ... }
I have a method
public double
readline Error 2 - Java Beginnersreadline Error
2 Hi sir,
can you look again please.
The error is hard to notice, but if you execute the code,
1. enter a string the first input request (eg hello world),
2. ENTER
3a. ENTER n for the next input request
connecting databasesconnecting databases I need to connect mysql on
2 or more remote pc'c.
how can i giv the ip address for
2 or more systems.
is it possible to connect to the required systems by user specifying the database and table name
my
Java Servlet Problem - JSP-ServletJava Servlet Problem I have a
servlet class that implemets the ServletContextAttributeListener interface. I am overriding all three methods, but in the attributeReplaced() method, i want to perform a redirect to another
servlet