Struts - Taglib directive in a JSP page for .tld provided by Struts

前端 未结 3 1967
鱼传尺愫
鱼传尺愫 2021-01-01 00:38

I am developing a Struts based application. I am new to Struts. I want to use html tags , specified in a taglib directory provided by Struts<

3条回答
  •  滥情空心
    2021-01-01 01:15

    BalusC is correct: you just need the JAR files in /WEB-INF/lib and a proper taglib in each JSP. One thing that tripped me up initially was the sensitive JSP syntax; spaces between some elements are important. Per the Stripes documentation, each taglib for the Stripes TLD should look like:

    <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
    

提交回复
热议问题