Hi there Bear and Ulf,
I am trying to construct a simple card game. The client plays the server, but I had in mind that the server would be controlling the game, so no javascript! The first step is to deal six cards to each player. The idea is to provide a page with six cards along the top (the server's cards) and six along the bottom (the client's cards). Now my page will display 12 image files called card1.jpg, card2.jpg etc. The first step is to randomly select 12 from 52 and then write the appropraite card to the page. So aceClubs.jpg goes to the card1.jpg position etc. How would I do this in a jsp? I can't hardcode (HTML) the pages until I know what the cards are and as I say, overwriting files via streams doesn't sound like the right way to do it either.
regards
Simon