在a.jsp中String[] temp=request.getparameterValues("aaa");
request.setAttribute("temp",temp);
转发到b.jsp时
String tt[]=(String[])request.getattribute("temp");for(int i=0;i<tt.lenth;i++){System.out.println(tt[i]);}
这样写问题出在哪,应怎样改正?提示错误是不能引用tt.length
request.setAttribute("temp",temp);
转发到b.jsp时
String tt[]=(String[])request.getattribute("temp");for(int i=0;i<tt.lenth;i++){System.out.println(tt[i]);}
这样写问题出在哪,应怎样改正?提示错误是不能引用tt.length
解决方案 »
- java接口设计
- 程序员学习困惑!
- 网页在ie下一直刷新,firefox下却可以正常,大家看下resize函数该怎么改?
- 求一批处理的解决方案
- struts前台怎么用request.getAttribute获取并解析后台设定好的ArrayList的值
- Google 里面字符的编码怎么转换回来!~(重金)
- 请教:jb9开发的jsp程序!
- web监听。。 指向问题
- 请问一下为什么在我的Adobe Reader5.0中找不到表单制作工具呢??
- struts中的tag,你们用的多吗?
- 帮忙估价一个b2c的站点 北京地区
- struts处理跨页表单时,发现FORMBEAN中相应的SETER方法没有被调用,请教!
普通的表单提交是不行的
在我的映象中是通过RequestDispatcher.forward跳转才能接收到
request.setAttribute设置的参数