安装好Tomcat后,进入其文件夹->webapps->ROOT
新建一个txt文件,命名helloWorld,打开,在里面输入
<html>
<body>
<center>
Hello World
</center>
</body>
</html>
保存,将后缀改为jsp,打开Tomcat,打开浏览器,输入网址
http://localhost:8080/helloWorld.jsp
就会显示Hello World
安装好Tomcat后,进入其文件夹->webapps->ROOT
新建一个txt文件,命名helloWorld,打开,在里面输入
<html>
<body>
<center>
Hello World
</center>
</body>
</html>
保存,将后缀改为jsp,打开Tomcat,打开浏览器,输入网址
http://localhost:8080/helloWorld.jsp
就会显示Hello World