permaculture playing cards*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how to get jsp init params Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how to get jsp init params" Watch "how to get jsp init params" New topic
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: 14687
    
  16

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: 19653
    
  18

Use the ServletConfig object available in the pre-defined config variable.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get jsp init params
 
Similar Threads
config.getInitParameter
JSP Init Param
EL- getting JSP Init Param
Why this code to get Init Param in JSP not work?
getting initialisation parameters in JSP