Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GenericServlet and Context name problem  RSS feed

 
andy morpheus
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
rahul dighe
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!