Topic: JSP出错

  Print this page

1.JSP出错 Copy to clipboard
Posted by: mwz2005
Posted on: 2006-01-07 21:21

RTFCreate.java在DOS已经通过编译,但当作javabean运行时抱下面得错,搞不明白了,请求高手帮助!

500 Servlet Exception
c:\my_subject\WEB-INF\classes\
? RTFCreate.java:11: class RTFCreate is public, should be declared in a
file named RTFCreate.java
public class RTFCreate
^
1 error

2.Re:JSP出错 [Re: mwz2005] Copy to clipboard
Posted by: why
Posted on: 2006-01-07 22:35

What's the point of showing us the image?
At least you should spend a few seconds to trim the white space around it.


Show us your RTFCreate.java
and
show us the result of directory listing of the folder where RTFCreate.java is at, i.e.
> dir c:\my_subject\WEB-INF\classes\


BTW, it's not a good idea to mix your java source files and class files together.

3.Re:JSP出错 [Re: mwz2005] Copy to clipboard
Posted by: andy_taoke
Posted on: 2006-01-11 22:49

lz应该是为了说明他的bean没有编译错误。
我感觉可能与发布有关。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923