猿问
没有index.jsp文件 源码是什么啊
eclipse没有index.jsp文件 源码是什么啊
慕UI8877854
浏览 2433
回答 3
3回答
HansonQ
新建的时候没有index.jsp ? 去tomcat下 webapp里面 找个例子 拷贝一份出来 删掉不相关的
1
0
0
qq_浮梦壹生_03287462
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>My JSP 'index.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> This is my JSP page. <br> </body></html>
2
0
0
随时随地看视频
慕课网APP
相关分类
Java
我要回答