This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java Web Application - using PHP instead of JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Web Application - using PHP instead of JSP" Watch "Java Web Application - using PHP instead of JSP" New topic
Author

Java Web Application - using PHP instead of JSP

Dan King
Ranch Hand

Joined: Mar 18, 2009
Posts: 84
I want to create a web application and it was recommended that I use jsp, servlets, and java frameworks like struts and hibernate. I'm curious to know if in place of JSP can I use PHP? I was thinking of using PHP to handle the presentation aspects of the web app, while leaving the "heavy lifting" to the java servlets. I found there are java based implementations of PHP such as Caucho's Quercus and Websphere's sMash that facilitate a Java/PHP architecture, where the two languages are integrated. Has anyone used either Quercus or sMash? If yes, is it worthwhile - does it deliver on it's claims? Thanks.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I've not used either of those two unfortunately, another question for you though.

"What features of PHP do you need/want that JSP doesn't provide?"

and a sub question to that is "Are there perhaps other languages on the JVM that have those PHP like features?"


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Dan King
Ranch Hand

Joined: Mar 18, 2009
Posts: 84
"What features of PHP do you need/want that JSP doesn't provide?"


I don't know JSP well enough to answer that. My interest in using PHP rather than JSP is two-fold:

1. I know PHP fairly well and I'm confident I can code the PHP (presentation) aspects of the web application I want to put together.
2. Many more companies (ISP) provide support for PHP.

What are the impediments, if any, to using PHP for presentation aspects of web app?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

1) May be a valid point. But if you are familiar with php, you'll find the JSTL and EL an easy transition.

2) Is not valid. No hosting company will give you servlets without JSP.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web Application - using PHP instead of JSP
 
Similar Threads
JSP/Servlet VS PHP
Differences between php and java
Doubt Regarding changing track from PHP to Java
Prior php knowledge required?
JSP or PHP