• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is this a bug???

 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my tomcat server, i edited the web.xml to include a context parameter.when i used the config implicit object to get the parameter it gave null, but when i accessed the servletcontext and called the getInitParameter method on it it returned the value. What is going on???
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
config can only retreive the initial parameters of one servelt.
dan
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the config implicit variable is a reference to the ServletConfig for the servlet created on behalf of the JSP page, I'm not sure why you expected to be able to access context parameters from it.
As documented, context parameters are available from the ServletContext.
[ May 11, 2004: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic