Jsp 是<;html:base/>;在struts1中等于<;s:head/>;在Struts 2中
我正在尝试将Struts 1标记迁移到Struts 2。是否有任何备忘单可以做这件事?(我没有看到任何关于迁移标记的备忘单。)需要知道struts2中的等效标记 尤其是:Jsp 是<;html:base/>;在struts1中等于<;s:head/>;在Struts 2中,jsp,struts2,struts,Jsp,Struts2,Struts,我正在尝试将Struts 1标记迁移到Struts 2。是否有任何备忘单可以做这件事?(我没有看到任何关于迁移标记的备忘单。)需要知道struts2中的等效标记 尤其是:在struts1中等于在struts2中 这是我很久以前用过的一张桌子: +--------------------------+-------------------------------------+ | <bean:write name= | <s:property value=
在struts1中等于在struts2中
这是我很久以前用过的一张桌子:
+--------------------------+-------------------------------------+
| <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” |
+--------------------------+-------------------------------------+
+--------------------------+-------------------------------------+
|不需要。您可以轻松找到S1标签的旧文档。记得?不同的框架。你能参考一下吗。我不会在这里替换同等的标签。谢谢你的帮助。你永远不知道是谁对你的问题投了赞成票,但是如果你需要的话,你可以问。如果问题或答案有帮助,那么应该接受并投票表决。你应该知道,投票给别人的答案是绝对自由的。
+--------------------------+-------------------------------------+
| <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” |
+--------------------------+-------------------------------------+