Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
struts2中的等效标记是什么_Struts2_Struts 1_Struts Tags - Fatal编程技术网

struts2中的等效标记是什么

struts2中的等效标记是什么,struts2,struts-1,struts-tags,Struts2,Struts 1,Struts Tags,我正在进行从Struts 1.x到Struts 2.0的代码迁移 <bean:page id="req" property="request" /> is the tag in Struts 1.x 谁能告诉我Struts 2.0下一行的等效标签 <bean:page id="req" property="request" /> is the tag in Struts 1.x 现在我想将Struts 1.x中的上述行转换为Struts 2.0中的等效行。没有直接等效

我正在进行从Struts 1.x到Struts 2.0的代码迁移

<bean:page id="req" property="request" /> is the tag in Struts 1.x
谁能告诉我Struts 2.0下一行的等效标签

<bean:page id="req" property="request" /> is the tag in Struts 1.x

现在我想将Struts 1.x中的上述行转换为Struts 2.0中的等效行。

没有直接等效的行

标记只是为scriptlet公开了一个页面范围的bean,您不应该使用它。

如果您想使用变量的页面范围,可以使用标记的scope属性


注意,请求指向Struts请求映射,它不是JSP的隐式请求对象,但它可以访问请求属性

他也不应该迁移到2.0:D