This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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?
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
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
Cameron Park
Ranch Hand
Joined: Apr 06, 2001
Posts: 371
posted
0
So, where should I place the com packages for JSP in tomcat?