<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Using PHP as a Spring MVC View via Quercus</title>
	<atom:link href="http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/</link>
	<description>Inside info, thoughts, and opinions from Caucho engineers</description>
	<pubDate>Sat, 25 May 2013 12:33:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: zia7770</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-16909</link>
		<dc:creator>zia7770</dc:creator>
		<pubDate>Tue, 29 Jan 2013 08:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-16909</guid>
		<description>Hi Emil,

Can we use Apache tiles or Sitemesh templating framework while using PHP as a view? If yes, could you please help how to do that?

-Zia</description>
		<content:encoded><![CDATA[<p>Hi Emil,</p>
<p>Can we use Apache tiles or Sitemesh templating framework while using PHP as a view? If yes, could you please help how to do that?</p>
<p>-Zia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zia7770</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-16204</link>
		<dc:creator>zia7770</dc:creator>
		<pubDate>Mon, 21 Jan 2013 07:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-16204</guid>
		<description>Hi Emil, where can I download the source code of this demo project? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Emil, where can I download the source code of this demo project? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-7663</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 03 Apr 2012 18:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-7663</guid>
		<description>Emil,

I just recently got into developing Web Applications and have been researching all the various options out there.  I have a feeling the project I'm working on will be in a position where we have a PHP front end and a Java Backend.  I wrote up a few test apps using Spring/JavaEE on various application servers.  I'd like to use Spring as our Framework, but due to my level of experience I'm all sorts of lost on how I might handle our integration points with PHP.

For example, let's take a simple web form to handle user logins.  The latest test I did had a PHP page on Apache POST to a Java Servlet on Tomcat.  I know I'm missing something simple, but when running the form through JSP, Spring just pulls in the Form elements/attributes and assigns them to a POJO.  I have no idea how to do that with strait HTML/PHP aside from manually parsing the POST request and assigning it to an object.  Any insight?

Many Thanks,
-Jason</description>
		<content:encoded><![CDATA[<p>Emil,</p>
<p>I just recently got into developing Web Applications and have been researching all the various options out there.  I have a feeling the project I&#8217;m working on will be in a position where we have a PHP front end and a Java Backend.  I wrote up a few test apps using Spring/JavaEE on various application servers.  I&#8217;d like to use Spring as our Framework, but due to my level of experience I&#8217;m all sorts of lost on how I might handle our integration points with PHP.</p>
<p>For example, let&#8217;s take a simple web form to handle user logins.  The latest test I did had a PHP page on Apache POST to a Java Servlet on Tomcat.  I know I&#8217;m missing something simple, but when running the form through JSP, Spring just pulls in the Form elements/attributes and assigns them to a POJO.  I have no idea how to do that with strait HTML/PHP aside from manually parsing the POST request and assigning it to an object.  Any insight?</p>
<p>Many Thanks,<br />
-Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: syndetic</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-560</link>
		<dc:creator>syndetic</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-560</guid>
		<description>Emil,

Actually, you're still cheating with the JSP.  Once you remove the pure Java inside of the scriptlet tags and replace it with proper JSTL and EL, the JSP gets considerably larger, making PHP even more compact, comparatively speaking.

Another nice thing about PHP over JSP is that writing helper classes in PHP is MUCH less time-consuming than writing your own JSP tag libraries.  Just create a new PHP class (or even plain-old code fragment in another PHP file), call one of include/include_once/require_once, and you're done.  Another point to take home is that PHP was meant for the web; specifically, the presentation layer.  PHP comes built-in with an EXTREMELY large array of functions that a template writer can use out of the box, making the JSTL look like its on a diet.  Another bonus is that when iteratively testing out your page design (code, reload page, fix, code, reload page, ...), you don't have to wait for your template code to get compiled; with PHP is just shows up instantaneously (assuming you're in Quercus "development mode", which is speedy enough as it is).  No need to wait for a recompile, no need to use something like JRebel, no more OOM errors after X number of page reloads, etc.

And lastly, since PHP is so well-known and has so much mindshare, even novice developers from the greater PHP world can be brought in to a team and begin work immediately without having to learn yet another technology.

Oh, and ONE MORE THING: with Quercus, you don't have to make sure all of your PHP module versions line up perfectly.  Using traditional PHP, you're often stuck with one version for a long time unless you want to go through the painful and often fruitless process of recompiling PHP, all of its modules, and Apache.  I use RHEL/CentOS almost exclusively, and you're pretty much stuck with one version of PHP (not counting patch releases).  With Quercus, it's just a matter of downloading ONE single quercus.jar file and restarting the application server.  Voila.  Total time: less than 45 seconds.  The alternative could take days and lots of Googling.

Anyway, great work.  I love Quercus.  Might Caucho consider open-sourcing the part of Quercus/Resin that compiles PHP into Java bytecode?  Remember that with Quercus you're selling a platform here, not an application.  Therefore it behooves Caucho to get this technology into as many hands as possible without restrictions or constraints.  For more info on what I'm referring to as "Platform", see Joel Spolsky's post here: http://www.joelonsoftware.com/articles/Platforms.html

By keeping the full potential (PHP -&gt; Java bytecode compilation) of Quercus locked up, you're increasing the chances of it being a niche technology only.  By getting it into as many hands as possible, however, you're giving Caucho and its commercial offerings more free exposure to the people who really matter to your bottom line: developers and IT folk.  Think about it.

Michael</description>
		<content:encoded><![CDATA[<p>Emil,</p>
<p>Actually, you&#8217;re still cheating with the JSP.  Once you remove the pure Java inside of the scriptlet tags and replace it with proper JSTL and EL, the JSP gets considerably larger, making PHP even more compact, comparatively speaking.</p>
<p>Another nice thing about PHP over JSP is that writing helper classes in PHP is MUCH less time-consuming than writing your own JSP tag libraries.  Just create a new PHP class (or even plain-old code fragment in another PHP file), call one of include/include_once/require_once, and you&#8217;re done.  Another point to take home is that PHP was meant for the web; specifically, the presentation layer.  PHP comes built-in with an EXTREMELY large array of functions that a template writer can use out of the box, making the JSTL look like its on a diet.  Another bonus is that when iteratively testing out your page design (code, reload page, fix, code, reload page, &#8230;), you don&#8217;t have to wait for your template code to get compiled; with PHP is just shows up instantaneously (assuming you&#8217;re in Quercus &#8220;development mode&#8221;, which is speedy enough as it is).  No need to wait for a recompile, no need to use something like JRebel, no more OOM errors after X number of page reloads, etc.</p>
<p>And lastly, since PHP is so well-known and has so much mindshare, even novice developers from the greater PHP world can be brought in to a team and begin work immediately without having to learn yet another technology.</p>
<p>Oh, and ONE MORE THING: with Quercus, you don&#8217;t have to make sure all of your PHP module versions line up perfectly.  Using traditional PHP, you&#8217;re often stuck with one version for a long time unless you want to go through the painful and often fruitless process of recompiling PHP, all of its modules, and Apache.  I use RHEL/CentOS almost exclusively, and you&#8217;re pretty much stuck with one version of PHP (not counting patch releases).  With Quercus, it&#8217;s just a matter of downloading ONE single quercus.jar file and restarting the application server.  Voila.  Total time: less than 45 seconds.  The alternative could take days and lots of Googling.</p>
<p>Anyway, great work.  I love Quercus.  Might Caucho consider open-sourcing the part of Quercus/Resin that compiles PHP into Java bytecode?  Remember that with Quercus you&#8217;re selling a platform here, not an application.  Therefore it behooves Caucho to get this technology into as many hands as possible without restrictions or constraints.  For more info on what I&#8217;m referring to as &#8220;Platform&#8221;, see Joel Spolsky&#8217;s post here: <a href="http://www.joelonsoftware.com/articles/Platforms.html" rel="nofollow">http://www.joelonsoftware.com/articles/Platforms.html</a></p>
<p>By keeping the full potential (PHP -&gt; Java bytecode compilation) of Quercus locked up, you&#8217;re increasing the chances of it being a niche technology only.  By getting it into as many hands as possible, however, you&#8217;re giving Caucho and its commercial offerings more free exposure to the people who really matter to your bottom line: developers and IT folk.  Think about it.</p>
<p>Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-94</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Mon, 27 Apr 2009 15:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-94</guid>
		<description>Hi delsvr,

It is in the repository right now and is built with "ant artifacts".  Then just use resin/artifacts/spring/dist/resin-spring.jar.  I'm not sure yet how we'll "ship" a prebuilt version of this.  The easiest way to get updates would be to write to resin-interest.  At this point, I don't see any problems with the implementation so we'll need people to test it to see if it breaks before I make any more updates.

Thanks,
Emil</description>
		<content:encoded><![CDATA[<p>Hi delsvr,</p>
<p>It is in the repository right now and is built with &#8220;ant artifacts&#8221;.  Then just use resin/artifacts/spring/dist/resin-spring.jar.  I&#8217;m not sure yet how we&#8217;ll &#8220;ship&#8221; a prebuilt version of this.  The easiest way to get updates would be to write to resin-interest.  At this point, I don&#8217;t see any problems with the implementation so we&#8217;ll need people to test it to see if it breaks before I make any more updates.</p>
<p>Thanks,<br />
Emil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: delsvr</title>
		<link>http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/comment-page-1/#comment-90</link>
		<dc:creator>delsvr</dc:creator>
		<pubDate>Sat, 25 Apr 2009 04:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caucho.com/?p=184#comment-90</guid>
		<description>This looks great, and it solves a long-standing problem with a legacy application we've been trying to migrate. Is QuercusView in the repository now? How should I get updates on the status of this implementation?

Thanks.</description>
		<content:encoded><![CDATA[<p>This looks great, and it solves a long-standing problem with a legacy application we&#8217;ve been trying to migrate. Is QuercusView in the repository now? How should I get updates on the status of this implementation?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
