October 13, 2005

Try Declarative Programming with Annotations and Aspects

n our shared quest for more highly productive methods of developing software, those of us in the Java community have looked to J2EE to provide solutions for the more challenging technical problems of enterprise development such as distributed transaction management, concurrency, and object distribution. The idea behind this?that these complicated

Send and Recieve Messages Using a CGI Java Application

The following code shows you how to send and receive CGI messages from a Java application: import java.net.*;import java.io.*;class POSTrequest{URL url=null;URLConnection URLcon=null;OutputStreamWriter OSW=null;BufferedReader BR=null;PrintStream PS=null;public void GetReady() { try { //it may be any other CGI url=new URL(“http://ludlow.dns2go.com/cgi-bin/plot/cut_basemap.pl”); URLcon=url.openConnection(); URLcon.setDoInput(true); URLcon.setDoOutput(true); //disable caching URLcon.setUseCaches(false); URLcon.setRequestProperty(“Content-Type”,”application/x-www-form-urlencoded”); SendRequest(); }catch(MalformedURLException e) {System.out.println(“Error 1:”+e.getMessage());