• 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

Where is servlet Folder?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All:
As we know, when we using Tomcat, all the class file should be under webapps\Root\WEB-INF\classes folder.
But when we type in the URL is http://localhost/servlet/anyfile.class
so how come I can't file the servlet folder under tomcat folder, but I can run my class file, no problem.
So my question is:
1. How come I can't find the folder, but I will be able to run the class file?
2. Does it define inside any file, can I change the servlet to other name?
Thanks for the help.
Eric
 
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey
the word 'servlet' is just a directive for your http server.
just to let it know it has to look for a class file.
regards
ravee.
 
Eric Wang
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ht Ravee Bhat:
Then mean there is not actual directory under Tomcat, am I right?
Then how come must be servlet, not other names?
I just want to know the flow only.
regards
Eric
 
Ravee Bhat
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,
That is right. This directive maps requests to the default folder for the servlets. And you can configure this URL mapping for names other than 'servlet' for servlets anywhere else.
hope this helps.
regards
ravee.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic