SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 20th, 2001, 02:23 AM
petern21 petern21 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 8 petern21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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();
}
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Stronghold


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway