The statement System.getProperty("java.class.path") returns this path
/usr/share/tomcat6/bin/bootstrap.jar
I have a Java file named user.java. I am trying to use the <jsp:useBean/> tag. Where exactly should i place the Java file? Or should I first manually compile it and then place the .class file into a folder somewhere?
In web applications the classes are either in the application’s
WEB-INF/classesdirectory or in a jar in theWEB-INF/libdirectory.Note that you need to represent the package as well, so your class file needs to be in
WEB-INF/classes/mypackage/user.class(provided the package is “mypackage”).Additionally, yes you need compiled class files not the source (except for JSPs which normally are compiled by the web server).