JSF%20Interview%20Questions%20and%20Answers
Question: How to access web.xml init parameters from jsp page?Answer: You can get it using initParam pre-defined JSF EL valiable.For example, if you have: <context-param> <param-name>productId</param-name> <param-value>2004Q4</param-value> </context-param> You can access this parameter with #{initParam['productId']} . For example: Product Id: <h:outputText value="#{initParam['productId']}"/> |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is JSF?
- What is required for JSF to get started?
- What is JSF architecture?
- How the components of JSF are rendered? An Example
- How JSF different from conventional JSP / Servlet Model?