Comparing JSP ,PHP AND ASP
Hello
Can you send me few reasons why is JSP better then ASP nad PHP.
Thanks Jelena
I don't know much of PHP but I can defintely compare it to ASP. ASP is a Windows proprietary technology that runs primarily on Windows machines. It uses either JavaScript or VBScript as the underlying language and has some limitations. For one there is the lack of multithreading which makes tasks that require asyncronous processing rather difficult. VBScript is a subset of Visual Basic which means there are a lot of things (objects and such) left out. You can create objects encompassing anymissing functionality out of COM using a CreateObject statement but if the objects were created using Visual Basic then there are threading issues that severly limit the amount of concurrent access. There is no direct support for polymorphism and inhereitance in VB which means Visual Basic is not a true object oriented language.
JSP overcomes all of these limitations by using Java as the underlying programming language. Java has language level support for threading that eases the burden of concurrent access and makes asynchronous tasks a snap. It is based on the J2EE standard rather than a proprietary technology. There are various implementations of this standard that allow you to plug JSP apps into virtually any webserver running on almost any hardware. Java includes direct support for polymorphism and inheritance making it a true object oriented language.
ASP.Net/VB.Net overcomes all of the mistakes made with ASP/VB by mimicking the Java/JSP platform. This shows that the ideas implemented in Java are rather strong ideas and have longevity. If you are writing your 1st web app and have limited knowledge of how the net works then maybe VB/ASP is a better starting point for it's simplicity and integrated environment. However, when you are ready to build scalable enterprise level web apps then JSP is definitely the better choice. Take it from someone experieinced in both.
Cliff
Similar Messages
-
Php and asp on same server?
Just a quicky?
Can I run both php and asp on the same server?
Some one has a website produced using asp (don't know a thing about that language) but I'd like to use the server it's on and redo some of the stuff using php just retaining a few pages which use asp, possible or not?
Cheers
Ospziecina wrote:
Hi
Yes, you can do this, (just not on the same page). I would recommend checking with your server provider first though.
PZ
Sounds promising:)
Nope, I don't want to mix and match on the same page. There's a couple of pages that I probably don't have the experience to do so I can just give them a visual makeover but retain the asp part.
Thanks
Os -
Use PHP or ASP to grab part of another site
Hello all,
I have permission to grab certain contents of pages of a site
that is a
static site. The static pages are updated fairly frequently,
otherwise,
I would just copy and paste.
I'd like to grab all code that is within a standard div tag
with an id
and insert it into my pages.
Is it possible to do this with script? I'm a beginner at both
PHP and
ASP, so any pointers would be great.
PS: to David Powers--great PHP for DW8 book.
-JohnJohn R. Lenz wrote:
> I'd like to grab all code that is within a standard div
tag with an id
> and insert it into my pages.
>
> Is it possible to do this with script? I'm a beginner at
both PHP and
> ASP, so any pointers would be great.
It's certainly doable with PHP. Do a Google search for screen
scraping
with PHP or page scraping with PHP. You'll find quite a few
tutorials.
The theory isn't all that difficult, but a lot depends on
your PHP
setup. You may need to use cURL or a socket connection if
your host has
disabled allow_url_fopen. It would also be a lot easier if
the target
page is valid XHTML and you have PHP 5. You could then use
SimpleXML to
loop through the page nodes to find the ID you want.
Rather than try to scrape the page every time somebody
accesses your
site, I would suggest scraping on a regular basis, say once
an hour, and
storing the content in a text file or a database. Of course,
that means
you need the ability to run PHP files as scheduled events.
It would be much simpler if the other site used a text file
as an
include. You could then grab the include yourself. Much
simpler, much
less hassle.
> PS: to David Powers--great PHP for DW8 book.
Thanks, John. Glad you liked it.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to configure OCI of Oracle9i to work with PHP or ASP on IIS5
I've been trying to make OCI of Oracle9i to work with PHP for all week. I went thourgh millions of documents and forums. And I still can't make them work. Anyone, please help me.
I used to have Oracle8i on my machine and it worked fine with both PHP and ASP on IIS5. Then I decided to change to Oracle9i. So I install Oracle9i in seperate home. And they worked fine. But one day I couldn't access some of my websites via "localhost/mywebsite". And I thought there is something wrong with IIS coz I ran very huge queries. So I reinstall IIS5. Then everything crash. PHP and ASP can't work with OCI. So I uninstalled every Oracle component (database and services) and PHP out of my machine. Then I installed Oracle9i database, redownload "php-4.3.1-installer.exe" , and install PHP.
Since I can't seem to find "php_oci8.dll" in "c:\php\" after I installed, I assume that oracle9i must provide OCI and I found the file "oci.dll" in "c:\OraHome9\Bin" directory. So I changed the extension directory in php.ini to
extension_dir = "c:\OraHome9\Bin"
And it still doesn't work. I'm kinna new to ASP so I don't know how to fix this problem.
Anyone, would you please give me any suggestion how to solve this problem or where to find the solution for this problem? I'd be very appreciated.I've been trying to make OCI of Oracle9i to work with PHP for all week. I went thourgh millions of documents and forums. And I still can't make them work. Anyone, please help me.
I used to have Oracle8i on my machine and it worked fine with both PHP and ASP on IIS5. Then I decided to change to Oracle9i. So I install Oracle9i in seperate home. And they worked fine. But one day I couldn't access some of my websites via "localhost/mywebsite". And I thought there is something wrong with IIS coz I ran very huge queries. So I reinstall IIS5. Then everything crash. PHP and ASP can't work with OCI. So I uninstalled every Oracle component (database and services) and PHP out of my machine. Then I installed Oracle9i database, redownload "php-4.3.1-installer.exe" , and install PHP.
Since I can't seem to find "php_oci8.dll" in "c:\php\" after I installed, I assume that oracle9i must provide OCI and I found the file "oci.dll" in "c:\OraHome9\Bin" directory. So I changed the extension directory in php.ini to
extension_dir = "c:\OraHome9\Bin"
And it still doesn't work. I'm kinna new to ASP so I don't know how to fix this problem.
Anyone, would you please give me any suggestion how to solve this problem or where to find the solution for this problem? I'd be very appreciated. -
How does performance of JSP compare to PHP, ASP, etc?
"One thing I've found lately is that server-side Java (JSP) is,
surprisingly, often omitted by web hosting providers. I thought that,
Java being the ultimate web language, just about everyone would offer
it, but it is fairly difficult to find at reasonable prices. Apparently,
it is a relative resource hog. One guy I talked to said that they
wouldn't be able to put more than three JSP sites on a server, whereas
using PHP or ASP, etc, they could do an order of magnitude better."
A friend of mine sent me that statement above. Is this roughly a true
statement? (I'm posting this here just as a starter. It is not aimed at
Weblogic at all...note that Weblogic is NOT even mentioned in the quote
above.)
The phrase "...everyone would offer it" pertains to the fact that my friend
has been conversing with various 'web hosting providers', and he came to
this
'conclusion' after talking with a bunch of them in search of a company to
host some of his client-companies web pages.
Thanks in advance for your experiences.
Cheers...
Dave
On resource needs, in my experience, JSPs (and Java servers in general) require
considerably more memory to run, but can actually reduce the CPU requirements.
For example I had an application written in mod_perl, and when compared to the
J2EE port, the mod_perl version consumed 1/2 the RAM, but the J2EE version
was suprisingly much faster in execution (sluggish pages in the mod_perl version
were very snappy in the J2EE version, on the same exact hardware.)
But the biggest problem for ISPs is actually the management of the servers, not so
much the hardware resources it takes. Today J2EE servers are still relatively complex
to manage and configure. E.g., even a small ISP using Apache can easily(!) support
dozens or even hundreds of virtual hosts for its clients... try doing that with Weblogic
or any other JSP/Servlet/EJB engine... nightmare!!
Take the deployment model as an example... in Perl/PHP/Frontpage-land the ISP
can simply give each clients a few directories (e.g., the old 'cgi-bin' and 'public_html'
dirs) and the client is self-sufficient. When a client changes something, they just ftp
the new files into the directory and voila, it's done. No need for hand-holding from the
ISP.
In contrast one can't do that with J2EE servers today... applications must be packaged
in some specific format, resources (like JDBC DataSources, JavaMail, security roles,
etc.) must be setup often by hand, the administrator must contend with a variety of
classpath and JSP compiler issues, the application then must be deployed to the server
using a proprietary tool (which can fail), the server may need to be told to "reload" the
new application, etc., etc.
Not very easy to manage when you have lots of clients!! Not to mention that very few
system administrators today in ISPs have a good understanding about Java in general;
few can tell the difference between Jdk 1.0 and Jdk 1.4; and only a tiny minority will
know something about running J2EE servers in production at all.
regards,
-Ade
"David Cook" <[email protected]> wrote in message news:[email protected]...
>
> "One thing I've found lately is that server-side Java (JSP) is,
> surprisingly, often omitted by web hosting providers. I thought that,
> Java being the ultimate web language, just about everyone would offer
> it, but it is fairly difficult to find at reasonable prices. Apparently,
> it is a relative resource hog. One guy I talked to said that they
> wouldn't be able to put more than three JSP sites on a server, whereas
> using PHP or ASP, etc, they could do an order of magnitude better."
>
> A friend of mine sent me that statement above. Is this roughly a true
> statement? (I'm posting this here just as a starter. It is not aimed at
> Weblogic at all...note that Weblogic is NOT even mentioned in the quote
> above.)
>
> The phrase "...everyone would offer it" pertains to the fact that my friend
> has been conversing with various 'web hosting providers', and he came to
> this
> 'conclusion' after talking with a bunch of them in search of a company to
> host some of his client-companies web pages.
>
> Thanks in advance for your experiences.
>
> Cheers...
> Dave
>
>
-
JSP , PHP, ASP???
i read somewhere that php is far more powerful than JSP and PHP? is that rue??
also for which is finding hosting, cheaper and easier???
AliPHP more powerful? Depends on what you mean by power.
In terms of features, no. JSP and ASP have many more features. They have full fledged OO programming languages and API libraries backing them up.
In terms of speed, it can be faster, just BECAUSE it doesn't have to bother with all the features that JSP/ASP provide.
In terms of memory requirements, PHP wins hands down. Java/ASP can be quite memory hungry.
They all do basically the same stuff at the end of the day - generate dynamic web pages.
For a lot of simple small-medium size websites PHP is perfectly fine.
ASP and .NET can provide many more features, but you are tied to MIcrosoft platforms.
Java/JSP is the best (of course - how can I say other on a java forum) - provides a good balance of speed/power without tying you down to a specific platform
You will probably find hosting easier for PHP/MySQL than you will for the other technologies, though I can't say with any certainty. I haven't really looked myself :-)
Cheers.
evnafets
(let the flames begin) -
Need help on integrating htmldb with asp/jsp/php
Hello there, we have a few existing htmldb applications running at the moment, and now we would like to develop some asp/jsp/php applications. However there is one issue we still haven't solved yet, which is the SESSION(Login) problem. We don't know how the session is being generated, how to pull out session values manually from db etc etc.
If you have done this before or any ideas, will be much appreciated.
Thanks very much
JamesJames,
sometimes it makes sense to look at these things from a different (and broader) perspective.
Especially in a context of a corporation it makes sense to use a Single Sign On (SSO) server for authentication (usually against LDAP) . Something like Netegrity Siteminder, Oracle SSO Server (as part of Oracle Internet Application Server) or something similar.
Then you could have all your applications use the authentication method of the SSO server which will keep track of the valid session and the applications that participate in the SSO context.
On the Apex side you would have to write a custom authentication scheme to leverage that functionality, the session handling will no longer be of any concern to you.
Just a different way to look at it.
~Dietmar. -
This might sound like a stupid thing to do.
If I have a main website developed in jsp and I want to pass information (variables) from it to another component of the same site developed in asp on a separate server is this possible?
If so how might one do it?
Many thanks
PaulIt's not a stupid question! You can even have both ASP and JSP on the same server - IIS! Of course, you have to have JSP container installed to process your JSP/Servlets.
How to do that? Install IIS (Microsoft Internet Information Server) (usually working on standard web port 80), also install Tomcat on the same server. After that you have to install ISAPI filter on IIS. That's the component that will filter all HTTP requests for pages with JSP extension from your IIS server and redirect them on Tomcat for JSP/Servlet processing.
E.g. if you have installed ISAPI filter for Tomcat container and you have INFO.ASP and INFO.JSP on your site. IIS will process ASP and send the result to your client. Also, if client requests INFO.JSP, ISAPI filter will recognoze from HTTP request that this client is asking for JSP page and it will redirect this request on Tomcat which will process this JSP and return the result to the user again.
APS and JSP pages can communicate among each other through POST or GET methods. For example if you request INFO.ASP?user=John or INFO.ASP?user=John both of them are capable of dealing with parameters (user) and each of them can redirect request to other one. -
JSP/Java vs ASP/VB Pay Difference
Hi all I have been looking at the pay for jsp/java vs asp/vb developers. I have found that for years it has been the same .
For a person with say 3-4 years of either the salary tops tends to be comparable.
Can anyone confirm this ?
Does anyone know why ?
I have found it strange because it appears to me that Java is a much more challenging language.
stephenBecause the value delivered by the developers you mention and their scarcity is almost identical, from a business perspective. Not only that but learning enough Java basics to write JSPs is not as nearly as challenging KNOWING Java enough to write a full-fledged, industry strength application. Good luck!
-
Can I do this in JSP instead of ASP?
The code below obviously submits a user's input to an .ASP page which then displays the appropriate data from an SQL2000 data base.
I've seen the examples where the submit form code is part of the JSP, but is it possible to use the javascript code below to send info to a JSP which then does it's 'select * from table where name = "userinput" ' from Oracle and then displays the appropriate data?
Thanks much,
Stephen Watts
*** Javascript code example ***
<HTML>
<HEAD>
<TITLE>Input Test Page</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<script language="JavaScript">
function properformat()
if (document.NameForm.elements[0].value.length<2)
alert("Please check your entry in the NAME field. If you are searching by a partial name, please enter at least 2 characters.");
document.NameForm.elements[0].focus()
return false;
</script>
<CENTER>
<HR>
<FORM METHOD="post" ACTION="http://test.domain.com/stephen/utilnamelist.asp" name="NameForm" onsubmit="return properformat()">
<B>Name or Customer Number:</B>
<BR>
<INPUT NAME="DataSearch" SIZE="40">
<P> Return <select name="Results">
<option selected>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
</select> record(s) <BR>at a time </P>
<P align=center>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" value=Reset> </P>
</FORM>
</CENTER>
</BODY></HTML>The short answer is: yes.
The JavaScript code executes on the client, so it is totally independant of the server code. The form could be submitted to ASP, JSP, PHP, etc. without the client knowing or caring which is being used. -
In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?
The simplest answer is to choose the language you work best with, and that fits the clients specification the best.
I have mixed server languages on a site before, (would not recommend) when a client has decided they wish to change from their old one to a new(er) /different one, the only thing you must watch if doing this, is that you do not mix languages on the same page (will not work correctly, if at all), and parameter passing.
PZ -
Dreamweaver 8, PHP, and WebDAV problems
I'm not sure where else to post this but maybe some of you
folks out
there might know the answer.
My web server, running IIS 6, supports both Coldfusion and
PHP. I've
recently enabled WebDAV for two dreamweaver users who want to
transfer
files securely using the check-in/check-out/sync processes
built into
dreamweaver.
Unfortunately, they are unable to retrieve any PHP files. I
had the
same problem, I tried to sync the entire web site and all the
html and
image files came down fine, but ALL of the php files
generated the
following error:
/development/index.php - error occurred - An HTTP error
occurred -
cannot get index.php. Access Denied. The file may not exist,
or there
could be a permission problem.
File activity incomplete. 1 file(s) or folder(s) were not
completed.
Files with errors: 1
/development/index.php
the IIS log file shows an HTTP response code of 200 - no
error.
The file DOES exist, and the permissions are exactly the same
on all the
files, because I manually set the permissions on the web root
and had it
apply to all subfolders and files.
I can't figure out why it's failing to retrieve the PHP
files...
RickSounds like a MS IIS problem. See if this TechNote helps:
Configuring WebDAV in IIS for use with Dreamweaver
http://www.adobe.com/go/19095
It has some general IIS/WebDAV tips that might help. For the
problem
you're seeing, make sure to disable mappings for PHP, CFM,
ASP, etc.
Hope this helps,
David Alcala
Adobe Technical Support -
ANN: Setting up PHP and MySQL for newbies!
We've recently released two new solution recipes to help
designers make the
jump to building dynamic sites. Each solution recipe
describes step by step
how to set up PHP and MySQL on your XP or Vista systems. You
can find them
on the Solution Recipe page:
Installing PHP and MySQL on Windows Vista
Installing PHP and MySQL on Windows XP
http://www.webassist.com/professional/products/solutionrecipes.asp
Each of these Solution Recipes include PDFs that you can
print out or read
on screen.
We also have steps outlined for the Mac in PDF format, one
for 10.4.x and
the other for 10.5.x:
10.4.x:
http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
10.5.x:
http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
All content is freely available. Go get'em!
Best - Joe
Joseph Lowery
VP of Marketing, WebAssist -
http://www.webassist.com
Author, Dreamweaver CS3 Bible -
http://www.idest.com/dreamweaver/Cool. I've bookmarked it for later.
Thanks!
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"Joseph Lowery" <[email protected]> wrote in
message
news:ftj87l$nem$[email protected]..
> We've recently released two new solution recipes to help
designers make
the
> jump to building dynamic sites. Each solution recipe
describes step by
step
> how to set up PHP and MySQL on your XP or Vista systems.
You can find them
> on the Solution Recipe page:
>
> Installing PHP and MySQL on Windows Vista
> Installing PHP and MySQL on Windows XP
>
http://www.webassist.com/professional/products/solutionrecipes.asp
>
> Each of these Solution Recipes include PDFs that you can
print out or read
> on screen.
>
> We also have steps outlined for the Mac in PDF format,
one for 10.4.x and
> the other for 10.5.x:
>
> 10.4.x:
>
http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
>
> 10.5.x:
>
http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
>
> All content is freely available. Go get'em!
>
> Best - Joe
>
> Joseph Lowery
> VP of Marketing, WebAssist -
http://www.webassist.com
> Author, Dreamweaver CS3 Bible -
http://www.idest.com/dreamweaver/
> -
Hi there,
Im currently creating a login system using php and sql. At the moment i have it that when the user registers their information (i.e username,password) it gets stored in the database. The part that i am having an issue with is that when the user logs in, I want to retrive the relavant data from the database and compare it to what they have entered into the login section. I persume i have to use an sql query something like (SELECT username, password FROM Users) but not sure how to compare it to what the user has entered.
Any help you be greatly appreciated.
Thanks,
BarrieHi,
does it mean that you´re not using Dreamweaver, which comes with a Login User server behavior which would do all the heavy lifting and generate a correct query ? Just asking, because you posted in the Dreamweaver Application Development forum -
Hi!
We are looking into upgrading our intranet files at my company. Right now, although they are effectively "plain vanilla" html, for some reason we have been using the asp format.
Our next evolution may involve using FMStudio to allow the intranet users to interact with our Filemaker database. These pages would be output in the php format.
I am wondering if I can convert these to asp without losing significant functionality. Thanks!Xynoplas wrote:
...whether a page with an .asp extension can be used to call PHP functions, and how this would be done.
In case you´re running an Apache server, this is possible by adding one of the following lines to a .htaccess file which should be placed in the "public_html" user directory to affect all .asp files
a) AddType application/x-httpd-php .asp
b) AddHandler application/x-httpd-php .asp
Version a) applies when PHP is installed as module in Apache, the second version is suitable when PHP is installed as CGI binary.
The result is, that your .asp pages will be parsed by PHP and hence can contain PHP stuff.
Maybe you are looking for
-
Hi, I just recently purchased an ipod touch 5 and have already forgotten my password. I have not yet connected it to my computer so when I tried today it didn't show up as a device. When I tried to go into icloud on my other device, thinking that may
-
Java and XML Parser. Please guide.
Hello there, I need to pass an XML document using the SAX Parser. Please does any one have an XML Parser routine to parse the document or can some one guide me as to what to do?
-
Reg Invoice copy sent to the customer through Email
Hi Gurus, As per my client requirement , he wants to sent the soft copy of the invoice copy to the customer mail id. To meet this what are the setting i need to do . please clarify it. Thanks and Regards satish
-
Does anyone know their way around the audio settings and audio cables?
I need some help setting up some audio settings for my Ps4 in a weird way. What I want to do is what CBarner89 does on twitch. If you havnt seen him stream from his Ps4 he has his decks hooked up to his stream directly channeling the audio in to the
-
AcroRd32.exe - Bad Image error message
Suddenly I am getting this error message: C:\\Windows\system32\ATMLB./dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator o