1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pass data to next jsp page in harder case

Discussion in 'JSP' started by carek, May 18, 2010.

  1. carek

    carek New Member

    Joined:
    May 18, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi. In below code I'd like to pass proper game.getGameTime() to signer.jsp page when user clicks submit button... any idea how can I do that?

    Code:
    <form action="signer.jsp">
        <TABLE BORDER=2>
            <TR>
                <TH>Game name</TH>
                <TH>Scenario</TH>
                <TH>Game Time</TH>
                <TH>Algorithm</TH>
                <TH>Sign Button</TH>
            </TR>
        <%
            for ( int i = 0; i < games.length; i++ ) {
                ScheduledGame game = gamesList.get(i);
                %>
                <TR>
                    <TD><%= game.getGameName() %></TD>
                    <TD><%= game.getScenario() %></TD>
                    <TD><%= game.getGameTime() %></TD>
                    
                    <TD>
                        <select name="algorithm">
                            <%
                                for(String algorithm : algorithms) {
                                    %>
                                    <option value=<%= algorithm %>> <%= algorithm %> </option>
                                    <%    
                                }
                            %>
                          </select> 
                    </TD>
                    
                    <TD><input type="submit" value="SignUp"/></TD>            
                </TR>
                <%
            }
        %>
        </TABLE>
    </form>
     

Share This Page