In a jsp I cannot build a string and then display it, i.e.
<% String i1 = "path/image1.jpg";
String i2 = "path/image2.jpg";
.. some logic to assign either i1 or i2 to s..
String h = "<img src=" + s + "width=/""70" ... etc;
%>
but I had in mind that the server would be controlling the game, so no javascript!
Originally posted by Simon Ingram:
because the file name is not known, ...
do i specify a dummy file name and then create the file on the fly?
can I somehow dynamically create the html?
I'm sure there is something simple that I am missing!
My servelt can decide which cards to display and then forwards to a jsp. But when I write the jsp i don't know the cards
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|