我正在尝试将 Struts 1 标签迁移到 Struts 2。是否有可用的备忘单来执行此操作?(我没有看到任何用于迁移标签的信息。)需要了解 Struts 2 中的等效标签。
尤其:
Struts1 中的
<html:base/>
相当于 Struts 2 中的 <s:head/>
吗?
其他需要迁移的标签:
<html:html/>
<html:base/>
<html:link forward/>
<html:link page/>
<html:html/>
<html:form action/>
<html:hidden/>
<html:submit/>
这是我很久以前用过的桌子:
+--------------------------+-------------------------------------+
| <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” |
+--------------------------+-------------------------------------+
其他你可以在我的回答中找到。