LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Servlets (https://www.linuxquestions.org/questions/programming-9/servlets-4175440357/)

Whatif 12-06-2012 07:47 PM

Servlets
 
Hello,

I installed Centos 6.3 as a workstation. Both JDK and Tomcat 6 are installed. Where should I place *.class files? What is the url I should use to access the servlet?

I have tried to search online but couldn't find a specific solution which added to the confusion from the book I'm reading.

Thanks in advance,
Mike

cheesus 12-10-2012 04:36 PM

Hello, the easiest (and correct) way to do this, is:
add a "web.xml" file, package it into a ".war" archive using the "jar" utility and copy the ".war" to the tomcats "webapps"/"deploy" directory.
http://www.avajava.com/tutorials/les...r-command.html
Maybe Eclipse has a wizard to help you with that ?
Cheers, Tom.


All times are GMT -5. The time now is 10:13 AM.