On page 208 of the book, we have an example of of setting up init param for JSP, and scriptlet code to get to it.
There is no EL implicit object for servlet/Jsp init params ( there is one for servletContext/applicatin init parameters. I know I can use the pageContext implite object to get to the servletConig object, eg.
But I can't get to the initParameters . Please advise.
I think, that there is no built-in way to access the servlet init parameters through EL. If You do not want to use scripting: 1. You can create an EL function, which takes the ServletConfig object and the name of the init parameter as a String object and returns the value of the init parameter. 2. You can create a custom tag
Joined: Dec 15, 2004
Thanks. Good to know that there might not be other ways than to write an EL function or a custom tag.