【问题标题】:Is <html:base/> in struts1 equals to <s:head/> in Struts 2struts1 中的 <html:base/> 是否等于 Struts 2 中的 <s:head/>
【发布时间】:2017-12-18 08:59:52
【问题描述】:

我正在尝试将 Struts 1 标签迁移到 Struts 2。是否有任何可用的备忘单?(我没有看到任何用于迁移标签的内容。)需要知道 struts2 中的等效标签

特别是&lt;html:base/&gt; in struts1 equals to &lt;s:head/&gt; in struts2?

html:html
html:base
html:link forward
html:link page
html:html
html:form action
html:hidden
html:submit>

【问题讨论】:

  • 没有。您可以轻松找到 S1 标签的旧文档。记住?不同的框架。
  • 你能不能参考一下。我没有在这里替换等效的标签。

标签: jsp struts2 struts


【解决方案1】:

这是我很久以前用过的表:

+--------------------------+-------------------------------------+
|  <bean:write name=       | <s:property value=                  |
+==========================+=====================================+
| <bean:message key=       | <s:text name=                       |
+--------------------------+-------------------------------------+
| <html:rewrite            | <s:url value=                       |
+--------------------------+-------------------------------------+
| <html:link action=       | <s:a action=                        |
+--------------------------+-------------------------------------+
| <html:img action=        | <img src==                          |
+--------------------------+-------------------------------------+
| <html:img page=          | <img src=                           |
+--------------------------+-------------------------------------+
| <html:hidden property=   | <s:hidden name=                     |
+--------------------------+-------------------------------------+
| <html:submit             | <s:submit                           |
+--------------------------+-------------------------------------+
| </html:submit>           | </s:submit                          |
+--------------------------+-------------------------------------+
| <html:form               | <s:form                             |
+--------------------------+-------------------------------------+
| </html:form              | </s:form                            |
+--------------------------+-------------------------------------+
| <html:text               | <s:textfield                        |
+--------------------------+-------------------------------------+
| <html:password           | <s:password                         |
+--------------------------+-------------------------------------+
| <html:select property=   | <s:select  name=                    |
+--------------------------+-------------------------------------+
| <html:optionsCollection  | <s:select list= listKey= listValue= |
+--------------------------+-------------------------------------+
| <html:checkbox property= | <s:checkbox name=                   |
+--------------------------+-------------------------------------+
| <html:file               | <s:file name=                       |
+--------------------------+-------------------------------------+
| <html:button             | <input type=“button”                |
+--------------------------+-------------------------------------+

其他你可以在我的答案中找到。

【讨论】:

  • 谢谢队友的帮助
  • 您永远不知道谁支持您的问题,但您可以询问是否需要。如果问题或答案有帮助,那么它应该被接受和投票。您应该知道这一点,并且绝对免费支持某人的答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-25
  • 2017-08-03
  • 1970-01-01
  • 1970-01-01
  • 2018-05-01
  • 1970-01-01
相关资源
最近更新 更多