i am working in java server programming with the aid of apache web server 4.1 …but i am unable to import the packages i make through the .jsp files ..
can any body tell me where to create the package of the classes i want to use and how to us e the packages in the html or the .jsp pages??

One Response to “how to import files in a java srerver programming with the aid of apache 4.1 web server application?”

  • Sam:

    You need Tomcat, not Apache… see link below. The version of Tomcat is dependent on the version of Java.

    Once you have it up and running, there are several examples. However, basically there will be a WEB-INF/classes directory in your WebApp where you will copy your compiled class files to. Your JSP files will go in the WebApp directory (different from your Java classes) and you should be able to import your packages just fine.

    You can’t use Java classes in plain HTML files (with the htm or html file extension). They are only accessible via JSP files.

Leave a Reply