Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Java Web Application - using PHP instead of JSP

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?"
 
Dan King
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"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?
 
Marshal
Posts: 67292
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I am Arthur, King of the Britons. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!