Sun ONE Web Server 6.1 and Beans
Hello,
I am learning JSP and I have a new install of Sun ONE Web Server Enterprise Edition 6.1. I have a some java code (a class) I would like to use in my JSP page via <jsp:useBean...>.
Where do I put my .java (or compiled .class) file?
For example: UserData.class
Thanks,
Michael
# 2
Thanks for the reply.
Under my <appdir> I created a WEB-INF and classes directries. I copied my .class file to it but still get the message in the Sun One 6.1 error log:
C:\Sun\WebServer6.1\https-titan\ClassCache\https-titan\default-webapp\_jsps\_apps\_bean1\_SaveName_jsp.java:66: package user does not exist
user = (user.UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "user.UserData");
^
I am so new - what else can you recommend?
Thanks again,
Michael
# 3
Hello all,>> <your app directory>/WEB-INF/classesI have tried many variations of this. There has to be something simple I am missing.On a new Sun One 6.1 server install what are the steps to get a bean to work?Thanks,Michael