• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Web Application - using PHP instead of JSP

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic