How do you use JSTL?

前端 未结 2 1395
野趣味
野趣味 2020-12-20 14:30

Trying to use JSTL but have the following problem:

Index.xhtml page:




        
2条回答
  •  隐瞒了意图╮
    2020-12-20 15:22

    I could solve the problem with adding xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" in my xhtml file.

    OR

    declaring this in my web.xml, and copying the c.tld in /WEB-INF/jsp from my application:

     
             
                   http://java.sun.com/jsp/jstl/core 
                   /WEB-INF/jsp/c.tld 
             
    
    

    Warning: xmlns:c="http://java.sun.com/jstl/core" throws exception, collected in my h:messages Tag

提交回复
热议问题