| Author |
how to get jsp init params
|
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
thanks
|
Sudheer
SCWCD, SCJP 5
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
It depends from where you want to get them. If it's from your servlet, you should look at GenericServlet#getInitParameter, GenericServlet#getInitParameterNames.
|
[My Blog]
All roads lead to JavaRanch
|
 |
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
|
if it is from jsp then how to get the init params
|
 |
swati bannore
Ranch Hand
Joined: Oct 18, 2000
Posts: 201
|
|
why would i configure a jsp as Servlet? I mean , is it like, on click of a URL, if JSP is going to listen to request, we do it this way..
Thanks
|
Swati Kale
SCJP
SCWCD
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Use the ServletConfig object available in the pre-defined config variable.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
|
whether its jsp or servlet it may need init params which are declarative to change.
|
 |
Jonathan Elkharrat
Ranch Hand
Joined: Dec 31, 2008
Posts: 170
|
|
|
dont forget the servlet-mapping for your jsp page....
|
SCJP 5, SCWCD 5, SCBCD 5
|
 |
 |
|
|
subject: how to get jsp init params
|
|
|