如何在服务器上托管jsp网站(页面)?
<%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="" %>
<%@ include file="top.jsp"%>
我在像网络解决方案这样的服务器上托管我的 jsp 网站(页面)时遇到上述错误。那么,有人知道如何在服务器上托管 jsp 网站吗?
<%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="" %>
<%@ include file="top.jsp"%>
I got the above error while hosting my jsp-website(pages) on server like network solutions. So, anyone have idea how to host jsp-website on server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <%@ include file="top.jsp"%>
不是错误。如果此行是输出(您在浏览器中看到的内容),则页面不会呈现。
如果您拥有网络解决方案服务器,那么您需要“nsHosting™ Shared (Unlimited)”包来支持 JSP。较小的一次(小和大)不支持 JPS。
@see 比较我们的虚拟主机套餐,然后单击“展开所有技术”特征”
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <%@ include file="top.jsp"%>
Is not an error. If this line is the output (what you see in your browser), than the page is just not rendered.
If you own an network solutions server, then you need the "nsHosting™ Shared (Unlimited)" Package for JSP support. The smaller once (small & large) does not support JPS.
@see Compare Our Web Hosting Packages and click "Expand All Technical Features"
这不是一个错误。这是您上传的实际文件。您必须选择一个提供 JSP 托管的 Web 主机(在 Tomcat 或其他一些 servlet 容器上)。此类主机通常要贵一些,因为大多数 servlet 容器不适合以与 CGI 和脚本语言相同的方式进行大规模托管。
如果您的主机有 JSP 托管服务,请联系支持人员并向他们寻求帮助。
That is not an error. It's the actual file you uploaded. You have to pick a web host which provides JSP hosting (on Tomcat or some other servlet container). Such hosts usually are a bit more expensive since most servlet containers isn't fit for mass hosting in the same way as for example CGI and scripting languages.
If your host have a JSP hosting service, contact the support and ask them for help.