Java Servlets vs. PHP

Status
You're currently viewing only jmmv's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

jmmv

Ars Scholae Palatinae
970
Hi all

I know PHP, and I have done several pages using it. Although I find it a bit confusing when trying to maintain the webpages, all html and php mixed; it's not fun.

I have also listened recently about the Java Servlets and JSP pages. So I went and installed Jakarta Tomcat, then tried the JSP examples. I find them cool, and they seem a good idea to maintain projects that depend heavily on a "logical" system. Though, I'm not used to JSP (yet) and I can't give my oppinion.

Which are the real advantadges (if any) of using JSP against PHP? Differences?

Thanks!
 

jmmv

Ars Scholae Palatinae
970
:eek: I'm starting to like the idea of using servlets. I have tried to do some pages with session management and PHP... it is a big mess.

I really like OOP so working with Java servlets may be my best bet hehehe. And as you say, using a class for user management and control will be great!

About database access, you are right. It is annoying to get a simple page working with mysql and postgresql, for example. I guess that with servlets and beans I'll be able to use JDBC to access them homogeneusly, right?

There are several terms that you have said, Philmes, that I do not understand... I'm going to start RTFM ;) But... about XML... the servlet produces a XML output, right. And then what, you use XSLT (dunno what's it) to convert XML to HTML or what?

Thanks!
 

jmmv

Ars Scholae Palatinae
970
pelican, does JSP perform better than PHP?

About what I have done with PHP... I find it ok to do some simple things in web pages, for example simple SQL queries. But for session management, I'm getting more convinced that JSP is the winner :)

BTW, I'm not new to programmer. I really like C++, and have done several things. OTOH, I do not remember much about Java hehe so I need to retake docs and reread them carefully. I think I'll get it in a few days, at least for basic things.
 
Status
You're currently viewing only jmmv's posts. Click here to go back to viewing the entire thread.
Not open for further replies.