我照了luckyfanjian(luckyfan) ( ) 的方法改了,却抛出了这样的错误: 500 Servlet Exception /examples/test.jsp:13: expected </jsp:root> at </jsp:useBean>. Closing tags must match opened tags. 这是怎么回事!
在WEB-INF新建文件夹COM然后在试一下
怎么还是不行啊 还是抛出那个错误: 500 Servlet Exception /examples/test.jsp:13: expected </jsp:root> at </jsp:useBean>. Closing tags must match opened tags.
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.