an asp page runs from a webserver. your java app runs from the command line. how do you expect your command line to interpret the asp file?? you need the asp output sent to a client browser. therefore you need one of the java programs types listed above.
If you wanted to read the results of the asp you could open a URL and then open a connection and read the data. For instance, to read this thread you could do:
URL url = new URL(<the asp page with attributes goes here>);
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String input = null;
while ((input = in.readLine()) != null)
System.out.println(input);
Which would print out the HTML response of the asp to your console.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.