Hi, I have a question on using the page directive attribute "import", and the directory that contains the imported package. Should I put those packages to be imported in the classes directory? If not, where should I put them? Thanks.
IMO, you can put them in the classes dir. Also, if you put them in the classes directory you still need to follow the package structure, if you have one. You could also put them in the lib dir if they are already in a jar file. Any one else who can confirm what I said........ regds. - satya
My idea is that when a JSP page is translated into a servlet, that servlet goes into classes directory like other regular servlets. So, the regular servlets import packages from the classes directory. So does the JSP files?
Joined: Jun 03, 2000
that servlet goes into classes directory like other regular servlets. This may not be really true. It depends on the app server implementation, I would guess. Under Tomcat, the generatedJavaServlet.[java, class] files are located under the TOMCAT_HOME/work/localhost_8080???/ directory. regds. - satya
Joined: Apr 06, 2001
So, where should I place the com packages for JSP in tomcat?