繁体   English   中英

将 struts 迁移到 jsp 中的 spring 标签

[英]Migrate struts to spring tags in jsp

我使用ast模块示例从 python 使用抽象语法树解析 - https://www.javatpoint.com/python-ast-module

现在我有了用例来替换 JSP 文件中的几个标签。 示例

<logic:equals property=“fieldname” value=“somevalue”> 
 </logic:equals>

替换为

<c:if test=“fieldname.somevalue”> 
</c:if> 

但是我找不到任何将 jsp 文件加载为 AST 进行解析的库。 I need to migrate the struts based jsp tags to spring based jsp, I have the list of tags to be migrated but not sure how to load the JSP as AST.

So that I can automate the struts based jsp tags to spring based jsp tags as shown in the example code above (logic:equals to c:if)

对此的任何帮助表示赞赏。

谢谢,哈利

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM