• 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

GenericServlet and Context name problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
how can i get the context name in a genericServlet ?
we have a init servlet that initializes our web
application (which is a generic servlet). To
configure the some stuff i need the context e.g.
/testapplication
How can i get this context from the generic servlet ?
Thanks in advance,
Andy
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can't u just use getServletContext(); ?
i am not sure what u mean that it is a GenericServlet, have u extended the GenericServlet .. ??? in either case i am sure u can use getServletContext.
or do u want the context of a webapplication ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic