JSF 面试题与答案
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']}"/> |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容:
- 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?