This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hello! I need my java application to communicate with my servlet probably using URLConnection class. Say I pass two parameters 'a','b' from the application and the servlet has a business logic that computes and returns the sum of 'a' and 'b' but not to a browser. How can I do it? TIA
You will have to imitate the way a browser sends a GET request to a servlet, then parse the results out of the response you get. Look at examples of GET URLs such as the one presently showing in your address window. Bill