This means that we can use java as an adjunct to our scripting. We might want to do this because the String class in java allows us to manipulate QUERY_STRING without worrying as much about special characters like ! & < > *, etc.
echo "Content-type: text/html" echo ""becomes:
System.out.println("Content-type: text/html"); System.out.println("\n");The backslash-n tells is how an endline character is written in java (and C, and in fact, in csh also).
http://yourhost.edu/j2_invokder.cgi?arg1=blah&arg2=blah&arg3=blahSo, the cgi script gives this QUERY_STRING to our java program, parser2.java and it strips away the ampersands. I also used a utility called StringTokenizer which helps separate the space-separated arguments into their own strings.
Create a form, which will use a similar process to these examples. Extend the functionality of the script by parsing out unwanted +'s, and replacing the %hex numbers with good values. For a table of equivalences, look here. And for hints look here Here's my example solution