Hi,folks
I'm still wondering how to retrive jsp initial parameters by using EL, following is my web.xml for your reference:
....
<servlet>
<servlet-name>TestJspInit</servlet-name>
<jsp-file>/EL/testInit.jsp</jsp-file>
<init-param>
<param-name>email</param-name>
<param-value>
ikickedbutt@wickedlysmart.com</param-value>
</init-param>
</servlet>
....
<servlet-mapping>
<servlet-name>TestJspInit</servlet-name>
<url-pattern>/TestJspInit</url-pattern>
</servlet-mapping>
In my /EL/testInit.jsp,I wrote:
${pageContext.config.email}
but it failed and give a error say :
Unable to find a value for "config" in object of class "org.apache.jasper.runtime.PageContextImpl" using operator "."
Anybody can help me clear this? thanks in advance.