Posted by Colin Asquith on 1999-05-28
I am trying to write my own little "quote" generator, I have a program working in Java, that runs from the command line, and I can mimic the effect with Perl, i.e. it generates a random number, then selects the index of an array of Strings based on that choice.Then it prints it to the screen. How do I include this into my HTML? I have tried Server Side Includes, and changed the variable so that I can run "unsafe" things on my machine, but nothing appears, even with the print text/html part at the top. How would I run the program as a servlet? I could do it as an applet, and easily as I am more adept with Applets, but I want to learn something new, also since I am using Java 1.2 if I don't use the new classes, could the Applet be loaded by a user of a normal 1.1 browser? Thanks for any help, All I want is at the top of the page for a quote e.g. "In the fight between you and the world, back the world. - Franz Kafka" How about JavaScript? Would that be an easy way too? Maybe pop up buttons? Thanks for any help, Colin.
Previous post | Next post | Timeline | Home