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
What's wrong? Where are you going? Stop! Read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|