2

我正在开发一个 Spring-MVC 应用程序,我想在其中集成一些旧版 PHP 代码。在 PHP 文件中,我主要有静态内容,我想在 JSP 文件中导入和使用一次包含和包含的 PHP 标记。经过研究,我开始使用 Quercus 来完成这项任务。不幸的是,我找不到很多他们想直接导入 PHP 文件的参考或示例。我可以展示我的代码如何,谁能告诉我如何导入 PHP 文件。谢谢 :

JSP 文件:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <title>Title of page</title>
</head>
 Now here is where I have such PHP code :
<?php
$thisPage="impressum";
include("php/top.php");
include("php/header.php");
include_once("php/analyticstracking.php");
?>

我对 PHP 的了解不多,所以这可能看起来很无聊,但是如何通过 Quercus 实现上述功能。我已经安装了战争。

4

0 回答 0