1

单击链接时,如何将数据从一个 JSP 传递到另一个 JSP href。那时我需要将数据隐藏在url.

<table  id="results" class="ex2 headQ"  width="550px" >
        <%
            for (int i = 0; i < list.size(); i++) {
        %>
        <tr></tr>

        <tr class="mycolor">  
            <%
                Query studentDetailsDTO = (Query) list.get(i);
                out.println("<td class='divClass'><a href=''>" +studentDetailsDTO.getTitle()+"</a></td>");
            %>
        </tr>

        <tr>  
            <%
                out.println("<td class='wrapword'> " + studentDetailsDTO.getQuestion() + "</td>");
            %>
        </tr>
        <%
            }
        %>
</table>
4

0 回答 0