Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets or php..urgent

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi buddies..
i know i m going bit far from what this forum intends me to do...but i m stuck on this...unable to decide which tech. to use for my next project...
can anyone point me the diff. between PHP & my dearest Servlets..(i wud like to continue using Servlets )...
pls..this is urgent
tia
malhar
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you have not described the project or why PHP might be a good solution for it! How can we advise you?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say that if your website is intented to be small, you can use PHP. The problem is that when your website starts to grow and you need to add more functionality to it, you end up having the html page full of php code, and this is very hard to maintain.
I'd go for jsp + servlets + javabeans (Model II or Model View Controler). You achieve the separation of presentation logic and application, and the maintainability is much simpler than using php. If you develop your pages well, you'll have minimum of java code in your .jsp files.
It depends of what you want as well... we need more info.
That's my opinion
cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic