和lyfcount.txt没有关系.
是楼主在jsp文件中没有import counter
是楼主在jsp文件中没有import counter
解决方案 »
- 数据库查询树形结构问题
- 高手指点,一个hibernate中的问题?
- 关于webservice传递参数的问题
- 校园网内组建JSP服务器
- JSP连接不上数据库,请多指教!
- 求救一记录集中时间型字段如何取值的问题:getString("fieldname")返回的时间格式为"2003-06-06 11:01:42.111",如何得到"2003-06-06 11:
- StringBuffer如何给他附值?
- 谁有Borland Enterprise Server AppServer Edition 5.1 的license
- 哪裡有tomcat下載?
- 怎么在提交页面后,slece选择框怎么为选中的那个选项?
- 请问在Javamail中如何以html的格式发送邮件
- 哪里有sun.JDBC.odbc.JdbcOdbcDriver这个驱动下载?
pacakge com;
然后再jsp中引用
<jsp:useBean id="counter" class="com.counter" scope="session" />
确定你放置文件的位置是你定义文件下的。
如果你去确定你的相对路径的话,你可以先打印出来看看。如果不会的话,干脆给绝对路径,这样最省事儿。
String cont=counter.ReadFile("C:/lyfcount.txt");
500 Servlet Exception
/examples/test.jsp:13: expected </jsp:root> at </jsp:useBean>. Closing
tags must match opened tags.
这是怎么回事!
还是抛出那个错误:
500 Servlet Exception
/examples/test.jsp:13: expected </jsp:root> at </jsp:useBean>. Closing
tags must match opened tags.