在 Java Play 上运行 JSP [英] Run JSP on Java Play

查看:19
本文介绍了在 Java Play 上运行 JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Java Play 框架,我有几个问题...

I have just started using the Java Play framework, and I have a few questions...

我开发了一个 web 应用程序,它使用 Maven 3.0 管理,托管在 Tomcat 7.0 上,并包含一大堆 JSP> 文件.我们的团队最近决定使用 Play 框架运行所有内容,我只是想知道是否有一种快速的方法可以将我的原始项目导入 Play?还有,play是怎么识别JSP文件的?把它们放在哪里?

I've developed a web application, which was managed using Maven 3.0, hosted on Tomcat 7.0, and containing a whole bunch of JSP files. Our team recently decided to run everything using the Play framework, and I'm just wonder if there is a fast way to import my original project into Play? also, how does play recognise JSP files? where to put them?

谢谢

推荐答案

不幸的是,play 框架视图模板使用 groovy (1.x) 或 scala (2.x) 来渲染数据.因此,无法在新系统中使用或替换旧的 jsp 文件.您必须将旧的批量 jsp 文件转换为新的视图

Unfortunately, play framework view template uses groovy (1.x) or scala (2.x) to render the data. Therefore, there is no way to use or replace the old jsp files in your new system. You have to convert the old bulk jsp files into the new views

这篇关于在 Java Play 上运行 JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆