![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jsp
bugskiller_cn
喜欢IT、喜欢编程。github:https://github.com/Tiakon
展开
-
parseRequest(RequestContext)还是parseRequest(HttpServletRequest)
parseRequest(RequestContext)还是parseRequest(HttpServletRequest)?今天写jsp文件下载时发现List<FileItem> fileItems = servletFileUpload.parseRequest(request);报了一个类型不兼容的错,具体提示如下: The method parseRequest(RequestContex原创 2017-09-24 22:05:43 · 4468 阅读 · 1 评论 -
JAVA,JSP,Servlet获取当前工程路径-绝对路径
JAVA、JSP、Servlet获取当前工程路径-绝对路径假定你的工程名称为projects,你在浏览器中输入请求路径:http://127.0.0.1:8080/projects/css/bootstrap.cssServlet则执行下面向行代码后打印出如下结果:1、 System.out.println(request.getContextPath()); 打印结果:/project原创 2017-09-02 23:50:01 · 1017 阅读 · 0 评论 -
include file与jsp include file有什么区别?
<%include file=”a.jsp”%>与< jsp:include file=”a.jsp”/>有什么区别?<%include file="a.jsp"%>是在编译时加入,所谓静态,就是在编译的时候将a.jsp的代码加入进来在编译,之后运行。<jsp:include page="a.jsp"/>是在运行时加入,所谓动态,就是单独编译,在运行时候加入进来,之后显示,这种include,可以传原创 2017-09-02 23:57:26 · 574 阅读 · 0 评论