我的网站是基于 Java Server Pages (JSP) 构建的 - 我还可以使用 Joomla 吗?
我的网站是基于 JSP
和 Java Servlet
构建的。 Html、Javascript 和 CSS(有限)也包含在我的 JSP 页面中。
我最近开始研究 Joomla
。我还有很多东西需要学习...
我知道 Joomla 是基于 PHP
的。
[ 我对 PHP 一无所知,但我了解到了解 PHP 并不是使用 Joomla 所必需的。 你同意吗?]
我有一些关于 Joomla 的问题 -
1) Joomla 生成的代码是用 PHP 编写的吗?还是HTML?也许两者兼而有之?
2) 如果可能的话,如何将我的 JSP 代码集成到 Joomla 生成的代码中?
--或者我需要将 Joomla 代码集成到我的 JSP 代码中吗?
我有一个用 JSP 和 Java 设计的功能齐全的网站 - 但在看到可以使用 CMS(例如 Joomla)完成的布局/设计后,我想知道如何“转换”我的网站或“集成”它,并且仍然保持它在 JSP 和 Java 下运行。
My website is built on JSP
and Java Servlets
. Html, Javascript and CSS (limited) is contained within my JSP pages as well.
I recently started looking into Joomla
. I have quite a bit to learn yet...
I understand that Joomla is based on PHP
.
[ I don't know anything about PHP, but I've read that knowing PHP is not really necessary in order to use Joomla. Do you agree? ]
I have some questions about Joomla -
1) The code that Joomla generates, is that in PHP? or Html? Perhaps a combination of both?
2) How, if possible, can I integrate my JSP code into what Joomla generates?
-- or do I need to integrate the Joomla code into my JSP code?
I have a fully functional website designed in JSP and Java - but after seeing the layout/design that can be accomplished with a CMS, such as Joomla, I want to know how I can 'convert' my site, or 'integrate' it, and still keep it running under JSP and Java.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Joomla 是用 PHP 编写的。它生成输出到浏览器的 HTML 文件。据我所知,您需要 PHP 才能使用 Joomla,除非有某种 JSP 端口(这是极不可能的)。
简而言之,Joomla IS PHP,它生成浏览器读取的 HTML 代码。
此外,CMS 与布局/设计无关,CMS 就是一个内容管理系统。它们通常被设计为用作实际的网站本身,用户只需选择一个主题并插入内容。
Joomla is written in PHP. It generates the HTML files which are output to the browser. As far as I know, you'll need PHP to use Joomla unless there's been some sort of JSP port for it (which is highly unlikely).
Simply, Joomla IS PHP, and it generates HTML code which the browser reads.
Also, a CMS has nothing to do with layout/design, a CMS is simply that, a Content Management System. They are usually designed to be used as the actual website itself, the user just picks a theme and inserts content.
如果你希望服务器端业务继续基于JSP、JAVA,并使用Joomla升级布局,那么你面临着大量的PHP编程,结果在性能方面不会很好。迁移到基于 JSF 和 Facelets 的解决方案会更容易。
If you are looking to keep the server-side business based on JSP, JAVA and upgrade the layout using Joomla you are facing a lot of PHP programming and the result would not be great in terms of performance. It is easier to migrate to a solution based on JSF and Facelets.
Joomla 是用 PHP 编写的,与其他所有服务器端基于 Web 的视图/模板技术(包括 JSP)一样,它只是生成 HTML/CSS/JS(Web 浏览器无论如何都无法理解其他任何内容)。
如果唯一的要求是拥有一个基于 Web 的博客引擎以及 Java/Servlet 中的 CMS,那么请查看 Hippo。它类似于 Wordpress/Joomla(尽管在我看来不那么养眼)。
Joomla is written in PHP ans as with every other server side webbased view/template technology (including JSP), it just generates HTML/CSS/JS (a webbrowser doesn't understand anything else anyway).
If the sole requirement is to have a webbased blog engine with a CMS in Java/Servlet, then checkout Hippo. It's similar to Wordpress/Joomla (although less eye-candy imo).
您可以查看 Caucho 的 Quercus,它允许您在 servlet 容器中运行 PHP 应用程序。我相信他们支持 Joomla,尽管我不确定是哪个版本。
You could check out Quercus from Caucho which allows you to run PHP applications in a servlet container. I believe they support Joomla though I'm not sure which versions.
可能的解决方案或答案是您需要完全重写。
Possible solution or answer is that you will need complete rewriting.
您可以将 Joomla 用于 Web 内容,将 JSP 用于企业应用程序的前端。在 Joomla 中集成外部内容可以通过多种方式完成,例如,您可以在菜单项中嵌入页面、AJAX 调用以从 JSP 页面检索内容 - 以 html 或其他格式(JSON 或 XML)。
You can use Joomla for the web content and JSP for the front end of an enterprise application. Integrating external content in Joomla can be done in many ways, for example, you can embed pages in Menu items, AJAX calls to retrieve content from your JSP pages -either in html or in another format (JSON or XML).