File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jspinitparameter 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 "jspinitparameter" Watch "jspinitparameter" New topic
Author

jspinitparameter

V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
how to get Jsp init parameter using EL syntax
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Are you asking about this ?


[My Blog]
All roads lead to JavaRanch
V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
I was asking about parameter that we declared inside <servlet> <jsp-file> in web.xml

thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You would use the "initParam" implicit object then.
Reesha Ashok
Ranch Hand

Joined: Apr 05, 2008
Posts: 32
InitParam implicit object of EL gives only context parameters, right? init-param declared under <servlet> tag will be config parameters, specific to that servlet - in this case specific to the jsp servlet. So how can initParam implicit object be used to retrieve jsp init param.?
Closest guess I would make is "config" implicit object of jsp as that is the implicit object for ServletConfig. Don't have any concrete proof though.
And as it turns out, config implicit object is not available in EL.
[ April 07, 2008: Message edited by: R Nellika ]

Thanks & Regards,<br />Reesha
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

sorry, my miss. I didn't read "V Gala"'s reply carefully. So the link I have posted in my first post was actually relevant : InitParamsThruExpressionLanguage
V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
Thanks
where is the errata page for HFS
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jspinitparameter