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

[324 byte] By [bronze-starDukes] at [2007-11-26 12:13:41]
# 1
<your app directory>/WEB-INF/classes
silverstar at 2007-7-7 14:15:17 > top of Java-index,Archived Forums,Socket Programming...
# 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

bronzestar at 2007-7-7 14:15:17 > top of Java-index,Archived Forums,Socket Programming...
# 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
bronzestar at 2007-7-7 14:15:17 > top of Java-index,Archived Forums,Socket Programming...