• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent Please Help!!!!

 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Hey,
I have to set my machine for working on some Servlet codes (urgently). My Machine has Apache and Tomcat set for JSP. It works perfectly well. I want to know, what additional setup is
required to enable Servlet development in this environment. I want to make this change in such a way that my existing setup is not affected.
Please help, there is an urgency!!
Thanks,
Bye,
Tualha Khan
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need anything else. If the machine will run JSP, it will run servlets. Check out the examples which come with Tomcat to see how servlets work.
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot,
But where do I keep my compiled class files?
Bye,
Tualha Khan
 
Raghavendra Holla
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You have to place .class files in TOMCAT_HOME\webapps\Your_Project_directory\WEB_INF\classes directory.
I have assumed that you have made an entry for 'context path' with respect to 'Your_Project_directory' in server.xml file of Tomcat which will exist in conf directory.
regards,
holla.
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, actually, i have the following path for my JSP files:
tomcat\webapps\mydev
where in mydev is my context. I think the path for servlets will be:
tomcat\webapps\myservletpath
Do I have to specify the web_INF on my own or is it provided by tomcat on it's own.
Please correct me?? I am still a newbie for this.
Thanks a lot,
Bye,
Tualha Khan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic