How to set ServeltConfig param name and value in index.jsp page with out xml configuration like initParams in Servlet ? is Possible ?
<servlet>
<servlet-name>welcome</servlet-name>
<jsp-file>/index.jsp</jsp-file>
<init-param>
<param-name>website</param-name>
<param-value>www.google.com</param-value>
</init-param>
</servlet>
In JSP, we have implicit objects, in which we have config (This is the ServletConfig object associated with the page) object. But I guess we can't add parameters manually as their is not method for adding init parameter in ServletConfig interface.
If you want to save any parameters you can save in 4 scopes of JSP (page,request,session and application) and use it wherever you needed.