Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Urgent Please Help!!!!

 
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
 
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
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic