On Thu, Mar 29, 2012 at 8:39 PM, Santinello, Anthony <anthony.santine...@experian.com> wrote: > Christian -- I'll have to check it out some more. I have heard of quercus as > a possible option. Just have to try it. > > So..Struts would call PHP pages using quercus instead of JSP pages? > > Or it sounds like what your saying is the PHP would make requests to Struts > that would do the business logic and return data(json/xml) to the PHP to > process; am I close? But it sounds like I would lose the dynamic nature of > JSP pages?
In the Quercus case: Web Request -> Drupal/PHP -> Struts classes You would be able to reuse you java classes, but you also might loose the Struts interceptor stack. In JSON/Rest case: Web Request -> Drupal/PHP -> web request-> Struts action You would keep your Struts interceptors here. And you have not the pain with Quercus (which can be complex sometimes) The problem is, Drupal does use its own database with content. You would have to work that all up and redirect to Struts. To be honest, this all is pretty challenging. My guess is, if you use Drupal for CMS work, then you will not manage to get the Data to your Struts app without pain. You have only a serious chance if struts delivers business data (facts, user data whatever) and Drupal manages the CMS stuff. But then you have two databases.... Guess you'll have a lot of fun pretty soon. > > Thanks for you help. > > -- > Tony > > -----Original Message----- > From: Christian Grobmeier [mailto:grobme...@gmail.com] > Sent: Thursday, March 29, 2012 1:20 PM > To: Struts Users Mailing List > Subject: Re: Struts/CMS/Drupal > > Tony, > > can Drupal consume json data easily? You probably can use Struts as some kind > of "data layer" which delivers only json data. > You might want to look at Quercus: > http://quercus.caucho.com/ > > Quercus is a Java implementation of PHP. It might serve Drupal, and this way > you might have a chance to access Java Klasses from PHP. > But you will still loose JSP et al - this would be a php domain then. > > If using Quercus I can only recommend using the whole Resin server... > while Quercus might run on other servers, it is a bit pita to get it running > there. > > Cheers > Christian > > On Thu, Mar 29, 2012 at 8:07 PM, Santinello, Anthony > <anthony.santine...@experian.com> wrote: >> Hi.. >> >> Wonder if I can get some advice/suggestions.. >> >> Has anyone used Drupal and Struts together? Drupal is a CMS for managing >> content/web features. I have a user that wants to use Drupal. Our >> application uses Struts; anyway to combine the two. >> >> Pretty much using Drupal as the View? Any ideas how to do so? I was thinking >> about Struts pointing to PHP; but then you lose the power of >> JSP/JSTL/Forms/etc? >> >> If not does anyone know of a CMS that integrates easily with struts? >> >> Thanks, >> >> Tony >> > > > > -- > http://www.grobmeier.de > https://www.timeandbill.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- http://www.grobmeier.de https://www.timeandbill.de --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org