简体   繁体   English

我的网站建立在Java Server Pages(JSP)之上-我仍可以使用Joomla吗?

[英]My website is built on Java Server Pages (JSP) - can I use Joomla still?

My website is built on JSP and Java Servlets . 我的网站基于JSPJava Servlets构建。 Html, Javascript and CSS (limited) is contained within my JSP pages as well. HTML,Javascript和CSS(受限制)也包含在我的JSP页面中。

I recently started looking into Joomla . 我最近开始研究Joomla I have quite a bit to learn yet... 我还有很多东西要学习...

I understand that Joomla is based on PHP . 我知道Joomla是基于PHP

[ I don't know anything about PHP, but I've read that knowing PHP is not really necessary in order to use Joomla. [我对PHP一无所知,但我已经读过了解使用Joomla并不一定要了解PHP。 Do you agree? 你同意吗? ] ]


I have some questions about Joomla - 我对Joomla有疑问-

1) The code that Joomla generates, is that in PHP? 1)Joomla生成的代码是在PHP中吗? or Html? 还是HTML? Perhaps a combination of both? 也许两者兼而有之?

2) How, if possible, can I integrate my JSP code into what Joomla generates? 2)如何在可能的情况下将JSP代码集成到Joomla生成的内容中?
-- or do I need to integrate the Joomla code into my JSP code? -还是我需要将Joomla代码集成到我的JSP代码中?

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. 我有一个使用JSP和Java设计的功能齐全的网站-但是在看到可以使用CMS等Joomla完成的布局/设计后,我想知道如何“转换”或“集成”网站,并仍使其在JSP和Java下运行。

Joomla is written in PHP. Joomla用PHP编写。 It generates the HTML files which are output to the browser. 它生成HTML文件,这些文件输出到浏览器。 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). 据我所知,除非有某种JS​​P端口(不太可能),否则您将需要PHP使用Joomla。

Simply, Joomla IS PHP, and it generates HTML code which the browser reads. 简而言之,Joomla PHP,它生成浏览器读取的HTML代码。

Also, a CMS has nothing to do with layout/design, a CMS is simply that, a Content Management System . 同样,CMS与布局/设计无关,CMS就是内容管理系统 They are usually designed to be used as the actual website itself, the user just picks a theme and inserts content. 它们通常被设计为用作实际的网站本身,用户只是选择一个主题并插入内容。

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. 如果您希望保持基于JSP,JAVA的服务器端业务并使用Joomla升级布局,那么您将面临大量PHP编程,并且在性能方面不会有很好的提高。 It is easier to migrate to a solution based on JSF and Facelets. 迁移到基于JSF和Facelets的解决方案比较容易。

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). Joomla和其他服务器端基于Web的视图/模板技术(包括JSP)一样,都是用PHP Ans编写的,它只是生成HTML / CSS / JS(Web浏览器仍然无法理解其他任何内容)。

If the sole requirement is to have a webbased blog engine with a CMS in Java/Servlet, then checkout Hippo . 如果唯一的要求是在Java / Servlet中使用带有CMS的基于Web的博客引擎,请签出Hippo It's similar to Wordpress/Joomla (although less eye-candy imo). 它与Wordpress / Joomla相似(尽管眼动的imo更少)。

可能的解决方案或答案是,您将需要完全重写

You can use Joomla for the web content and JSP for the front end of an enterprise application. 您可以将Joomla用于Web内容,将JSP用于企业应用程序的前端。 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). 在Joomla中集成外部内容可以通过多种方式完成,例如,您可以将页面嵌入Menu菜单项,通过AJAX调用从JSP页面中检索内容(以html或其他格式(JSON或XML))。

You could check out Quercus from Caucho which allows you to run PHP applications in a servlet container. 您可以从Caucho检出Quercus,从而可以在servlet容器中运行PHP应用程序。 I believe they support Joomla though I'm not sure which versions. 我不确定他们支持Joomla,尽管我不确定哪个版本。

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

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