• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

accesing package in tomcat

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am making a project for a school. So, In jakarta folder, I have one folder named "school" in the WEBAPPS folder. In it,I have one jsp named login.jsp. Now, It is accessing one servlet named LoginServlet. The servlet is in a package whose srructure is 'ind.co.intecinfocom.school.servlets.LoginServlet.class'. Now, this folder I have kept in jakarta->webapps->school->web-inf->classes folder. Now, to access this LoginServlet servlet, I want to know the entry I have to make in web.xml and what url I have to give in my login.jsp.
thanks in advance
gaurav
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat comes with an example folder. Look in the example's web.xml file. There are plenty of mappings that you can examine and 'modify' to work for your case.

Or search this forum for servlet-mapping

As a hint, there are two tags you will need to use. ( A mapping is indirect. You type an URL, which relates to a servlet alias. The alias maps to a class. )
[ January 16, 2003: Message edited by: Mike Curwen ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic