我放到里面了 但还是没有正确响应呀
这是我的代码 帮我看看有什么地方出错了吧
这是javabean的代码 public class counter{
int count = 0;
public counter(){
}
public int getCount(){
count++;
return this.count;
} public void setCount(int count){
this.count = count;
}
}
这是jsp的代码<html><body>
<jsp:useBean id = "bean0" class = "counter" scope = "application" />
<%@ out.println("The count is:"+bean0.getCount()+"<BR>");%>
</body></html>我把编译过后的javabean置于web-inf目录下
就是不能显示出来 老是提示无法显示页面
这是我的代码 帮我看看有什么地方出错了吧
这是javabean的代码 public class counter{
int count = 0;
public counter(){
}
public int getCount(){
count++;
return this.count;
} public void setCount(int count){
this.count = count;
}
}
这是jsp的代码<html><body>
<jsp:useBean id = "bean0" class = "counter" scope = "application" />
<%@ out.println("The count is:"+bean0.getCount()+"<BR>");%>
</body></html>我把编译过后的javabean置于web-inf目录下
就是不能显示出来 老是提示无法显示页面
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货