delphi网页脚本的网页部分是什么? [英] What's exactly is the web part of delphi web script?

查看:126
本文介绍了delphi网页脚本的网页部分是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始在我的应用程序中集成Delphi Web Script,基本上只是作为脚本引擎(与功能,类等接口);



项目的Web部分是什么?



如何使用?



它在商业上有些成功使用吗?



谢谢!

解决方案

As ain 表示,原来用于PHP-像ASP一样的服务器端网页生成,但它也能够通用目的,这是我用它。而且,由于我没有使用DWScript的web端,所以大部分面向Web的功能都没有被移植(实际上只移植了HTML过滤器)。



如果有人想要解决端口,则Web功能仍然可以在SourceForge存储库中使用。尽管如此,除了简单的重命名方法和类之外,它们可能已经过时了,因为DWSII以来,脚本引擎已经获得了各种各样的功能。例如,现在可以对单个编译脚本执行多个线程安全执行,而旧的代码基础是围绕限制,一次编译的脚本只能由一个线程执行。



另一方面,有一些新功能可以简化移植,最近添加的简单WebServer演示使用RTTI来公开TWebResponse& TWebRequest f.i. (在DWSII中手动曝光)。在这方面,这只能用最近的Delphi版本。


I'm currently starting to integrate "Delphi Web Script" in my application basically only as a scripting engine (interfacing with functions, classes, etc.); awesome software for the standard delphi open source quality in my opinion, but just for curiosity,

What's exactly the "web part" of the project?

How is intended to be used?

It was used somewhere with some success commercially?

Thanks!

解决方案

As ain said, the original use was for PHP-like, ASP-like server-side web-page generation, but it was also capable of general purpose use, which is what I used it for. And as I did not use the "web" side of DWScript, most of the "web-oriented" features haven't been ported over (only the HTML Filter was ported actually).

The Web functionality is still available in the SourceForge repository, if someone wants to tackle the port. Though, they may be outdated beyond simple renamed methods and classes, as since DWSII, the script engine has gained various features. For instance, it is now capable of multiple thread-safe executions of a single compiled script, while the old codebase is built around the limitation that a compiled script can be executed by only one thread at a time.

On the other hand, there are some new features that could simplify the porting, the simple WebServer demo recently added uses RTTI to expose TWebResponse & TWebRequest f.i. (was manually exposed in DWSII). On the down side, that's only possible with recent Delphi versions.

这篇关于delphi网页脚本的网页部分是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆