Those are two compiled languages and an interface - completely different to a scripting language. Java isn't really a scripting language, you don't run the Java files themselves but instead the class files which are compiled bytecode. Plus you've missed out Perl from your options, which is probably one of the most popular scripting languages out there.
The definition of what is a scripting language versus what is a programming language is actually a bit vague. http://perldoc.perl.org/perlfaq1.html#Is-it-a-Perl-program-or-a-Perl-script? http://en.wikipedia.org/wiki/Scripting_programming_language Given that, and considering the options that the original post did include, I think it is a safe assumption that Web languages (that is, any programming language with some relation to the Web) is what he/she meant.
I mostly use perl for CGI stuff. However, I use php for serving pages because it is seems easier to use when dynamically filling a template with content. I have played with C/C++ for CGI, but the write-compile-run-debug phase is much more time consuming than perl's write-run-debug phase using a text editor.
I've coded in ColdFusion, Perl, MivaScript, PHP, ASP, Java and even Fortran and ColdFusion is easily the most enjoyable. I like the fact that I can focus on what I want to do and not focus on the syntax. I found there was a lot less typing (or snippet pasting) in CF and I am always a year or two ahead on features like sessions, Flash forms, etc. I find it interesting that I run into a lot of people who code in Java during the day and PHP at night. I code in CFML day and night.
I've been using php ever since. I find it easier to use and understand. I also tried using actionscripts.