用struts1 做 表格 急用 请各位高手进来看看 本人刚实习 这是一个考核题 谢谢了 用struts1 做 表格 通过一个jsp页面(有两个下拉列表 列数:行数:)下边有一个提交按钮根据所选行数列数 跳转另一个jsp页面 显示一个多行多列的表格 表格中用“*”; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 first.jsp <select id="hs" name="hs"> <option value="1">1行</option> <option value="2">2行</option> </select> <select id="ls" name="ls"> <option value="1">1列</option> <option value="2">2列</option> </select> 通过form提交到下个JSP(second.jsp) <table> <% int hs=Integer.parseInt(request.getparameter("hs").toString); for(int i=0;i<hs;i++) { %> <tr> <% int ls=Integer.parseInt(request.getparameter("ls").toString); for(int j=0;j<ls;j++) {%> <td>*</td> <% } %> </tr> <% out.println("<tr>"); } %> </table> 没有测试,反正大体上这样应该可以实现。 不用写继承action的那个吗? int ls=Integer.parseInt(request.getparameter("ls").toString);这个是什么意思啊? 自定义标签类怎么调用dao取数据 求一个详细的可以运行的基于Struts2的网上商城详细源码 求救求救~~~~~高手进来看看 <s:form> 程序循环内存溢出 jsp session过期问题? 各位大虾,紧急求助,如何分析一个文本文件!!!!!!!!!!!!!1 在jsp里做在线播放 高分请教、探讨用JAVA实现基于WEB得录音及回放功能…… 如何在action中判断jsp页面点击了哪个按钮 jquery+struts1问题,无法将返回值返回到后台 Tomcat安装之后, http://localhost:8080
<select id="hs" name="hs">
<option value="1">1行</option>
<option value="2">2行</option>
</select>
<select id="ls" name="ls">
<option value="1">1列</option>
<option value="2">2列</option>
</select> 通过form提交到下个JSP(second.jsp)
<table>
<%
int hs=Integer.parseInt(request.getparameter("hs").toString);
for(int i=0;i<hs;i++)
{
%>
<tr>
<%
int ls=Integer.parseInt(request.getparameter("ls").toString);
for(int j=0;j<ls;j++)
{%>
<td>*</td>
<%
}
%>
</tr> <%
out.println("<tr>");
}
%>
</table> 没有测试,反正大体上这样应该可以实现。
这个是什么意思啊?