• 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

about web.xml file.

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi to all my friends of javaranch.!!

i want to know that if i am creating servlet so for that i have to write respective web.xml file also from which the server gets the information about my servlet right.
I want to know that for every servlet i have to write the this following lines of code right.

ok so i want to know that will my above code is right or not??? please help me out from this .... and please give the correct coding also for this above web.xml ok.

Thanks in advance.!!!

[BPSouther: Added code tags]
[ September 06, 2007: Message edited by: Ben Souther ]
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm going to move this to our servlets forum
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At a glance, your deployment descriptor (web.xml file) looks fine.

If you want to avoid the need to configure a servlet for each and every component you write, look up the Front Controller or Command pattern.

We have an example in our code barn under Servlets.
Also Bear Bibeault has written an article in our Journal about the front controller pattern as used by his FrontMan framework.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The article Ben mentioned.

Also, an implementation of Front Man is available. Click on link in my sig.
 
reply
    Bookmark Topic Watch Topic
  • New Topic