你如何使用Java制作网站?

问题描述:

这可能是一个非常微不足道的问题,但我一直在我的学校编写Java程序,我发现我也可以用Java创建网站。

This might be a really trivial question, but I've been writing Java programs at my school and I just found out that I can create websites with Java as well.


  • 我该怎么做?有什么好书/教程吗?

  • 哪个更适合Web开发,Java或PHP?

  • 此外,当使用PHP时,MySQL开始着手,在为桌面编写Java程序时,我们只使用文件I / O,那么对于web dev,File I / O或者更好的是MySQL?

阅读 Java Web应用程序教程

基本上是Web应用程序是Java EE标准的一部分。很多人只使用带有额外框架的Web(servlets)部分,最值得注意的是Spring,还有Struts,Seam等。

Basically Web applications are a part of the Java EE standard. A lot of people only use the Web (servlets) part with additional frameworks thrown in, most notably Spring but also Struts, Seam and others.

所有你需要的是一个IDE像IntelliJ,Eclipse或Netbeans,JDK,Java EE下载和像Tomcat这样的servlet容器(或像Glassfish或JBoss这样的成熟应用服务器)。

All you need is an IDE like IntelliJ, Eclipse or Netbeans, the JDK, the Java EE download and a servlet container like Tomcat (or a full-blown application server like Glassfish or JBoss).

这里是 Tomcat教程