intellij idea2016.1.3怎么创建jsp页面

2025-02-24 20:39:02
推荐回答(1个)
回答1:

1首先打开IDEA软件,点击Create New Project
2
选择好Java Enterprise;
勾选上WebApplication;
选择创建web.xml;
点击next;
3
填写工程名称和工程路径
点击Finsh完成
在左侧项目文件web文件夹下打开index.jsp
这个文件便是网页显示配置文件
在index.jsp文件中配置:

[html] view plain copy
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


$Title$


<%
String str="Hello World";
out.println(str);
%>