On Mon, 13 Dec 1999, Shanmugavelu Rajan wrote:
> I am trying to put the NumberGuessBean that comes with the JSWDK-1.0.1 in
> a new directory to test the syntax of the useBean tag. The bean files now
> reside under c:\jswdk-1.0.1\examples\web-inf\jsp\beans\write directory.
> I modified the JSP source to reflect the new path. It looks like this
>
> <%@ page import = "write.NumberGuessBean" %>
> <jsp:usebean id="numguess" class="write.NumberGuessBean" scope="session"/>
>
> I stopped/started the jswdk server. Now when I try accessing the jsp page I
> get the error message:
>
> Error 500:
> write/NumberGuessBean (wrong name: num/NumberGuessBean)
>
> Any ideas on how I can fix it? Please reply.
> Thanks.
The problem, I think, is that the classes were compiled in the 'num'
package and that information is stored in the class files themselves.
You've moved them to the 'write' directory but didn't change what package
they are in. You would need to change the package directive in the
source and recompile.
John K Peterson -- IT Services Development -- Brigham Young University
Internet: [EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html