当前位置:web 服务器 > Tomcat >>

请问这段jsp购物车的代码错在哪儿??tomcat说这里有错,然后购物车页面无法显示!

38: <% 39: it=c_cart.iterator(); 40: while(it.hasNext()){ 41: cartBean cbean=(cartBean)(it.next()); 42: i_totalnum+=cbean.ordernum; 43: d_totalamount+=cbean.subtotal; 44: %>
追问:
        	
				
加了也还是错误啊!!org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 41 in the jsp file: /qiuqiu/shoppingcart.jsp cartBean cannot be resolved to a type 38: <%  39: it=c_cart.iterator(); 40: while(it.hasNext()){
41: cartBean cbean=(cartBean)(it.next());  42:  i_totalnum+=cbean.ordernum;  43:   d_totalamount+=cbean.subtotal;}  44: %>
41: cartBean cbean=(cartBean)(it.next());这行错了。
iterator我不会的我用List的,你用List是试一试。
可不可以具体说一下怎么改??谢啦~~~
要是可以的话,吧你的项目发给我,有空我帮你看看。1158407469@qq.com
Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,