tomcat的package路径设置问题
我装的tomcat5.0.16,虚拟路径设置的e:/jspsource
编译显示单个的jsp文件可以正确的运行。
我写了一个最简单的java bean程序内容如下
文件1:hello.java
package hellobean;
public class hello
{
public String getString()
{
return "Hello World!";
}
}
文件2:hello.jsp
<%@ page contentType = "text/html; charset = GB2312" %>
<html>
<head>
<title>Hello </title>
</head>
<body>
<b><center>
<FONT SIZE="5" COLOR="red">一个最简单的Java Bean</FONT>
<HR><BR>
<jsp:useBean id="hi" class="hellobean.hello" scope = "page"/>
<i><FONT SIZE="5" face= "Arial Black">
<%= hi.getString()%>
</FONT></i>
</center></b>
</body>
</html>
这两个文件的路径应该怎么设置,我现在保存的路径是
e:\jspsource\hellobean\hello.jsp
e:\jspsource\hellobean\WEB-INF\classes\hello.java
可是提示包找不到,大家帮帮忙告诉我怎么设置呀,或者还要设置什么?