Developer community
0 votes
97 views
asked by Guru (24.6k points) 31 57 92 | 97 views

1 Answer

0 votes
Servlet init parameters are for a single servlet only. No body out side that servlet can access that. Itis declared inside the <servlet> tag inside Deployment Descriptor, where as context init parameter is for the entire web application. Any servlet or JSP in that web application can access context init parameter. Context parameters are declared in a tag <context-param> directly inside the <web-app> tag. The methods for accessing context init parameter is getServletContext ().getInitParamter (“name”) where as method for accessing servlet init parameter is getServletConfig ().getInitParamter (“name”);
answered by Guru (39.1k points) 10 23 38

Related questions

0 votes
1 answer
asked by sara Guru (24.6k points) 31 57 92 | 33 views
0 votes
1 answer
asked by sara Guru (24.6k points) 31 57 92 | 5 views
0 votes
2 answers
asked by john Guru (27.1k points) 35 52 112 | 70 views
0 votes
1 answer
asked by smith Geek (15.3k points) 18 43 68 | 72 views
0 votes
1 answer
asked by sara Guru (24.6k points) 31 57 92 | 9 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,754 questions
4,046 answers
117 comments
10,709 users