This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How does one import a .class file in a jsp file using <%@ page import= %> assuming my class file is A.class and is on directory c:\tomcat\webapps\myjsp\web-inf\classes\A.class what should I put in the import="". I am using Tomcat ver 3.3. also what if i put the A.class file in a package what should i do?. Thanks Chris
You really should put your class in a package so that the JSP interpreter will look in the right place. <%@ page import="mypkg.A" %> Tomcat will start looking at the directory: c:\tomcat\webapps\myjsp\WEB-INF\classes\mypkg (the upper case WEB-INF is required) All of these conventions are laid out in the servlet API you can download from java.sun.com Bill
Thanks alot Mr Brogden. My jsp is working fine already. However I'ld like to clarify something you said that WEB-INF should be capitalized and it is a must but my jsp and servlets are working fine using lowercase web-inf how's that? Thanks Chris