Hi,
I have two applications one running on
struts 1 and other on struts 2. Now i need to call action in strtus 1 application from struts2 and parse the response.
I am using
URL url = new URL("/???/executeTestAction.do");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());
writer.write(data);
writer.flush();
// Get the response
StringBuffer response = new StringBuffer();
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
but i am getting error saying Error no protocol. I am not sure this is right way to connect or not.