1. <tfoot id='QkN2Q'></tfoot>

      • <bdo id='QkN2Q'></bdo><ul id='QkN2Q'></ul>
    2. <legend id='QkN2Q'><style id='QkN2Q'><dir id='QkN2Q'><q id='QkN2Q'></q></dir></style></legend>
        <i id='QkN2Q'><tr id='QkN2Q'><dt id='QkN2Q'><q id='QkN2Q'><span id='QkN2Q'><b id='QkN2Q'><form id='QkN2Q'><ins id='QkN2Q'></ins><ul id='QkN2Q'></ul><sub id='QkN2Q'></sub></form><legend id='QkN2Q'></legend><bdo id='QkN2Q'><pre id='QkN2Q'><center id='QkN2Q'></center></pre></bdo></b><th id='QkN2Q'></th></span></q></dt></tr></i><div id='QkN2Q'><tfoot id='QkN2Q'></tfoot><dl id='QkN2Q'><fieldset id='QkN2Q'></fieldset></dl></div>
      1. <small id='QkN2Q'></small><noframes id='QkN2Q'>

        无法在 web.xml 或 jar 文件中解析 Struts 标记图块

        时间:2023-10-15
          • <bdo id='GQJWd'></bdo><ul id='GQJWd'></ul>

            • <legend id='GQJWd'><style id='GQJWd'><dir id='GQJWd'><q id='GQJWd'></q></dir></style></legend>

                <small id='GQJWd'></small><noframes id='GQJWd'>

              1. <i id='GQJWd'><tr id='GQJWd'><dt id='GQJWd'><q id='GQJWd'><span id='GQJWd'><b id='GQJWd'><form id='GQJWd'><ins id='GQJWd'></ins><ul id='GQJWd'></ul><sub id='GQJWd'></sub></form><legend id='GQJWd'></legend><bdo id='GQJWd'><pre id='GQJWd'><center id='GQJWd'></center></pre></bdo></b><th id='GQJWd'></th></span></q></dt></tr></i><div id='GQJWd'><tfoot id='GQJWd'></tfoot><dl id='GQJWd'><fieldset id='GQJWd'></fieldset></dl></div>

              2. <tfoot id='GQJWd'></tfoot>

                    <tbody id='GQJWd'></tbody>
                  本文介绍了无法在 web.xml 或 jar 文件中解析 Struts 标记图块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Eclipse IDE 和 JBoss5 服务器和 maven 中使用 Struts2 进行构建.我试图在一个简单的登录应用程序中使用磁贴.但我无法包含标签库.我已经在 pom.xml 文件中导入了所有必要的 jar 依赖项.以下是我在 maven pom.xml 文件中包含的 jar 列表:

                  I am using Struts2 in Eclipse IDE and JBoss5 server and maven for build. I was trying to use tiles in a simple login application. But I am not able to include the taglib. I have imported all the necessary jars dependencies in pom.xml file. Following is the list of jars which I have included in maven pom.xml file:

                  • struts2-core 2.3.15.1
                  • struts2-tiles-plugin 2.3.15.1
                  • commons-beanutils
                  • struts-taglib
                  • commons-digester
                  • commons-beanutils
                  • tiles-api

                  我还包括并尝试了不同的可能组合

                  and also I included and tried different possible combinations of

                  1. tiles-api-2.0.3.jar
                  2. tiles-core-2.0.3.jar
                  3. tiles-jsp-2.0.3.jar
                  4. struts-tiles.jar

                  仍然无法正常工作,错误是:

                  and still it is not working, the Errors are :

                  -The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
                  -ServletException including path '/layout.jsp'. 
                  -ServletException including path '/layout.jsp'. 
                  

                  当我尝试在 JSP 页面上导入图块 taglib 时,它会显示

                  when I am trying to import tiles taglib on a JSP page it says

                  URI: http://tiles.apache.org/tags-tiles 无法在web.xml 或随此应用程序部署的 jar 文件.

                  URI: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application.

                  我也试过谷歌.有一些解决方案,但它们对我不起作用.

                  I tried Google also. Got some solutions but they didn't work for me.

                  推荐答案

                  您应该使用至少 2.4 版本的 servlet API.在图块中,您可以使用 taglib 定义

                  You should use servlet API at least version 2.4. In the tiles you could use taglib definition

                  <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
                  

                  不要用 Tiles 工件弄乱 Struts 1 taglib 和 tile jar.

                  Don't mess up Struts 1 taglib and tiles jars with Tiles artifacts.

                  这篇关于无法在 web.xml 或 jar 文件中解析 Struts 标记图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Struts 2 中使用 jQuery Ajax 检查唯一用户? 下一篇:Struts 2 请求参数验证(Int 和字符串)

                  相关文章

                    <tfoot id='UInzc'></tfoot>
                    • <bdo id='UInzc'></bdo><ul id='UInzc'></ul>
                    <i id='UInzc'><tr id='UInzc'><dt id='UInzc'><q id='UInzc'><span id='UInzc'><b id='UInzc'><form id='UInzc'><ins id='UInzc'></ins><ul id='UInzc'></ul><sub id='UInzc'></sub></form><legend id='UInzc'></legend><bdo id='UInzc'><pre id='UInzc'><center id='UInzc'></center></pre></bdo></b><th id='UInzc'></th></span></q></dt></tr></i><div id='UInzc'><tfoot id='UInzc'></tfoot><dl id='UInzc'><fieldset id='UInzc'></fieldset></dl></div>
                  1. <small id='UInzc'></small><noframes id='UInzc'>

                  2. <legend id='UInzc'><style id='UInzc'><dir id='UInzc'><q id='UInzc'></q></dir></style></legend>