<legend id='fUyoA'><style id='fUyoA'><dir id='fUyoA'><q id='fUyoA'></q></dir></style></legend>

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

      1. <small id='fUyoA'></small><noframes id='fUyoA'>

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

        JSP 未终止 &lt;s:a&gt;使用嵌套 OGNL 标记

        JSP Unterminated lt;s:agt; Tag With Nested OGNL(JSP 未终止 lt;s:agt;使用嵌套 OGNL 标记)
      3. <legend id='xJfCE'><style id='xJfCE'><dir id='xJfCE'><q id='xJfCE'></q></dir></style></legend>
        <tfoot id='xJfCE'></tfoot>
              <tbody id='xJfCE'></tbody>

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

                  <bdo id='xJfCE'></bdo><ul id='xJfCE'></ul>

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

                  本文介绍了JSP 未终止 &lt;s:a&gt;使用嵌套 OGNL 标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一些 OGNL 用于将 <s:a> 的 href 元素填充到由 Google UserService 处理的动态生成的 URL.

                  I have some OGNL I am using to populate the href element of an <s:a> to a dynamically produced URL, handled by the Google UserService.

                  <%@ taglib prefix="s" uri="/struts-tags"%>
                  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
                  
                  <c:set var="requestUri" value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}" />
                  <s:a href="%{#action.userService.createLoginURL("<c:out value="${requestUri}"/>");}">Sign in</s:a>
                  

                  但是,我收到一条错误消息,提示 <s:a> 标记未终止.我尝试转义内部语音标记,并使用单引号,但到目前为止,我总是收到相同的错误消息.

                  However, I am getting an error saying the <s:a> tag is unterminated. I have tried escaping inner speechmarks, and using single quotes but so far I have always been greeted with the same error message.

                  (11,71) Unterminated &lt;s:a tag
                  

                  我一辈子都看不出哪里出了问题.也许对这种语言有更好洞察力的人会看到我看不到的东西.

                  I can't for the life of me see what is wrong. Maybe someone with better eyes for the language will see something I cannot.

                  推荐答案

                  你不能在Struts标签的属性中使用JSP标签,但是你可以在那里使用OGNL.

                  You cannot use JSP tags in Struts tag's attributes, but you can use OGNL there.

                  另外请注意,您可以在 Struts 标签的属性中使用 OGNL only.在大多数情况下,OGNL 在服务器上执行一次,你不应该使用嵌套的 OGNL 或任何你称之为的东西.可能是这个问题会告诉你如何使用你称为nested OGNL.

                  Also note, that you can use OGNL only in Struts tag's attributes. And in most cases OGNL is executed once on the server, you shouldn't use nested OGNL or whatever you call it. May be this question will show you how to use you called nested OGNL.

                  <s:set var="requestUri" value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}" />
                  <s:a href="%{#action.userService.createLoginURL(#requestUri)}">Sign in</s:a>
                  

                  这篇关于JSP 未终止 &lt;s:a&gt;使用嵌套 OGNL 标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)

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

                            <bdo id='BYwuh'></bdo><ul id='BYwuh'></ul>
                            <tfoot id='BYwuh'></tfoot>

                            <i id='BYwuh'><tr id='BYwuh'><dt id='BYwuh'><q id='BYwuh'><span id='BYwuh'><b id='BYwuh'><form id='BYwuh'><ins id='BYwuh'></ins><ul id='BYwuh'></ul><sub id='BYwuh'></sub></form><legend id='BYwuh'></legend><bdo id='BYwuh'><pre id='BYwuh'><center id='BYwuh'></center></pre></bdo></b><th id='BYwuh'></th></span></q></dt></tr></i><div id='BYwuh'><tfoot id='BYwuh'></tfoot><dl id='BYwuh'><fieldset id='BYwuh'></fieldset></dl></div>
                              <tbody id='BYwuh'></tbody>
                          • <legend id='BYwuh'><style id='BYwuh'><dir id='BYwuh'><q id='BYwuh'></q></dir></style></legend>