问题
Are there any alternatives for IntraWeb for Delphi,
if I want to write a simple but meaningful webserver in Delphi?
回答1:
I've been doing Cold Fusion, PHP and ASP work when I was also doing Delphi work, and found it strange I was writing server-side script that would get parsed over and over, while there's a really good and fast Delphi compiler! So I went out and started http://xxm.sf.net/ It provides a way to combine HTML and Object Pascal into the same files, works with IIS, Apache, Internet Explorer, FireFox, and has a plain HTTP implementation using TTcpServer also. When you make changes to the source-code (and use an AutoBuild handler) the binary is re-compiled on the fly by pressing refresh in your browser. Much like other website scripting platforms.
It's pretty crude, and new, but remember that's somewhere PHP and others were some time after they started.
回答2:
If you want a RIA application with Delphi, nothing is better than uniGUI.
回答3:
Morfik tries to be RAD for web apps, was originally written in and for Delphi quite a few years ago (8 or 9), now also has versions for C# and VB.NET. I have no experience with it, but was surprised to see a pretty well trafficked forum on their website:
Main Morfik site: http://www.morfik.com
Page with some Delphi tips: http://wiki.morfik.com/wiki3/Tips_For_Delphi_Developers
Also some components at RealThinClient that are geared towards web development with Delphi: http://realthinclient.com/
Developer Express used to have ExpressWebFramework, which was architecturally similar to ASP.NET but was a Win32/VCL framework. It was a competitor to IntraWeb but I don't think they sell it anymore (probably because since there's been a .NET version of Delphi the .NET web development environment has been preferred by most).
回答4:
WebHub is a third party alternative, as are the 2 solutions that come inbuilt into the VCL, WebBroker and WebSnap.
WebSnap is deprecated though so I wouldn't recommend it. WebBroker is still supported and is good at what it does, it's just it doesn't do a lot compared to say IntraWeb or WebHub.
回答5:
You can write your own web server by using Winsock unit.
来源:https://stackoverflow.com/questions/5669559/alternatives-for-intraweb-in-delphi