Soap query database
<p>I write a opration on java soap service to query the database and then show the data I have searched on client jsp page. However, I can't show it, the variable "rs" cannot change, I don't know why? could someone help me to find the troboule?
This is the opration i create on soap service:</p>

<pre><code>  @WebMethod(operationName = "query")
public String query(@WebParam(name = "parameter") String parameter) {
    ResultSet rs;
    try {
        Connection con = data1.getConnection();
        Statement statement = con.createStatement();
        String QueryString;
        QueryString = "SELECT * from stud where name= parameter";
        rs = statement.executeQuery(QueryString);
        while (rs.next()) {
            System.out.println(rs.getInt(1) + " " + rs.getString(2) + "\n");

        }
    } catch (Exception ex) {
        System.out.println("Unable to connect to batabase.");//TODO write your implementation code here:
    }
    //TODO write your implementation code here:
    return null;
}
</code></pre>
