门户网站包含很多静态页面,如何生成这些页面呢?
我想知道这种技术的名称是什么,如果有人能给我参考,我将不胜感激。
实际上该网站是用Java/C#开发的,但不是真正的静态网站。
提前致谢 !
I want to know what's the name of this kind of technology and if someone can give me references, will be appreciated.
Actually the website is developed with Java/C#, but not a really static website.
Thanks in advance !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
关于“看起来像静态页面的 URL”:
许多 Web 开发框架允许配置 URL 映射 - 将用户输入的 URL 映射到特定动态脚本/函数的机制。 AFAIK,Java Spring 和 Stripes 框架可以做到这一点。
一些网络服务器提供重写引擎功能,它允许执行相同的操作 - 根据请求调用特定脚本某种类型的 URL。
关于性能:
如果您担心性能,请考虑使用一些缓存技术(例如,memcached< /a>,甚至反向代理)。
About "URLs which look like static pages":
Many web development frameworks allow to configure URL mapping - mechanism of mapping URL entered by user to specific dynamic script / function. AFAIK, for Java Spring and Stripes frameworks can do that.
Some web servers provide Rewrite Engine functionality, which allows to do the same - call specific scripts on request to URL of some type.
About performance:
If you are anxious about performance, consider using some caching technology (for example, memcached, or even reverse proxy).
我不确定我是否理解你的问题。
如果您问他们如何生成作为静态页面发送到浏览器的自定义内容,这是网络服务器的经典工作方式。他们有一个应用程序来处理您的请求(可能就像输入搜索一样简单),创建一个包含自定义响应的 html 页面并将其发回。在 C# 世界中,这通常是通过 ASP.NET 完成的。
I'm not sure I understand your question.
If you're asking how they generate customized content that is sent to the browser as a static page, it's the classic way web servers work. They have an application that processes your request (which could be as simple as entering a search), create an html page containing the customized response and send it back. In the C# world this is usually done with ASP.NET.