
November 20th, 2001, 02:23 AM
|
|
Junior Member
|
|
Join Date: Jul 2001
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Stronghold
Hello!
Is there anyone who knows anything about Stronghold?
I have an application that connects to a Servlet and passes some information. How should I solve this when Stronghold is on the Servlet side??
This is the Application:
public static void connectToServlet() {
try {
URL url = new URL("http://localhost:8080/servlet/Servlet");
HttpMessage msg = new HttpMessage(url);
InputStream in = msg.sendGetMessage();
Properties props = new Properties();
props.put("database", "Test_database");
props.put("user", "Test_user");
props.put("password", "Test_password");
msg.sendPostMessage(props);
DataInputStream result = new DataInputStream(new BufferedInputStream(in));
//String date = result.readLine();
in.close();
}
catch (Exception e) {
e.printStackTrace();
}
}
|