java 可以在 IIS 服务器上运行 JSP 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4153533/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 05:03:59  来源:igfitidea点击:

it is possible to run JSP files on IIS Server

javaiisjsp

提问by CristiC

Possible Duplicate:
Lightweight servlet engine for serving java application via IIS

可能的重复:
用于通过 IIS 为 Java 应用程序提供服务的轻量级 servlet 引擎

It is possible to run JSP files, let's say Struts 1, on IIS Server?

是否可以在 IIS 服务器上运行 JSP 文件,比如说 Struts 1?

Thanks

谢谢

回答by anil

David Wang wrote a post on the MSDN blogs titled "How does JSP work on IIS?" that addresses why JSP can't be run directly under IIS 5.0 and 6.0. The short version is that IIS doesn't run any dynamic content directly, it requires an add-on for it (even ASP.Net). The article mentions a popular add-on to use for servlets is isapi_redirect, which shunts the request to Tomcat for handling (since isapi_redirect is an IIS add-on, IIS still handles communication with the client).

David Wang 在 MSDN 博客上写了一篇题为“ JSP 如何在 IIS 上工作?”的文章,其中说明了为什么 JSP 不能直接在 IIS 5.0 和 6.0 下运行。简短的版本是 IIS 不直接运行任何动态内容,它需要一个附加组件(甚至 ASP.Net)。文章提到了一个用于 servlet 的流行插件isapi_redirect,它将请求分流到 Tomcat 进行处理(因为 isapi_redirect 是一个 IIS 插件,IIS 仍然处理与客户端的通信)。

回答by duffymo

Not without a servlet/JSP engine of some kind.

并非没有某种 servlet/JSP 引擎。