摘要: 问题描述: jsp页面中el表达式,例如:${pageContext.request.contextPath},原样呈现,未被解析。 解决方案: 为jsp页添加page指令如下: <%@ page isELIgnored="false" %> jsp页面无法识别jstl标签 jsp页加入taglib 阅读全文
posted @ 2018-04-11 00:00 god with us 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: JavaWeb通常指服务器端的Java应用开发。 一般来说,服务器是在网络通信条件下工作的,这就离不开http协议。 HTTP协议,是为服务器和客户端通信提供的规范,其中规定了信息的格式,符合规范格式的信息就能由服务器识别,并反馈信息。请求(request)指客户端向服务噐发送的信息;响应(resp 阅读全文
posted @ 2017-08-14 07:30 god with us 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 【场景】eclipse导入项目后,该项目出现红色叹号。打开类文件,会有无数的“The type ... cannot be resolved.”等稀奇古怪的编译错误。 【分析】当前eclipse环境中找不到项目引用的类库。 【解决】重新引用类库,JRE System Library也会出此错误,重新 阅读全文
posted @ 2017-02-08 22:45 god with us 阅读(2093) 评论(0) 推荐(0) 编辑
摘要: 【场景】调用com.sun.awt.AWTUtilities时,eclipse提示编译错误: Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Fil 阅读全文
posted @ 2017-02-08 13:31 god with us 阅读(2325) 评论(0) 推荐(0) 编辑
摘要: 一、What is ... 异常处理就是容错处理机制。通过构造一个陷阱来捕获运行时的可预见错误,经对该错误进行适当处理后,让程序能继续运行不至于崩溃。 二、Who will ... 异常由系统环境引发,由开发者捕获,留待(后续)开发者或用户处理。 三、When do ... 编程时并不打算立即处理该 阅读全文
posted @ 2016-11-11 00:08 god with us 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 一、安装Eclipse Java Web Developer Tools插件 1、eclipse菜单:help/install New Software,打开Available Software窗体; 2、Available Software窗体:Work with下拉框中选择mars - http 阅读全文
posted @ 2016-11-10 23:54 god with us 阅读(2139) 评论(0) 推荐(0) 编辑
摘要: 打开站点:http://marketplace.eclipse.org/content/eclipse-tomcat-plugin 把Install拖到打开的eclipse的工作区中,即可下载安装。 安装后eclipse将重启,重新打开后可见工具栏上出现Tomcat的三个控制按钮: 随后,您需要配置 阅读全文
posted @ 2016-11-10 22:11 god with us 阅读(21959) 评论(0) 推荐(0) 编辑
摘要: 使用JDBC访问SQLServer 2008 阅读全文
posted @ 2016-09-05 15:30 god with us 阅读(426) 评论(0) 推荐(0) 编辑
摘要: Web项目的uri模型大致如下: http://localhost:8080 (/context) (/resource) 站点/上下文/资源 一. Tomcat中指定上下文(Context) 方法一,位于webapps文件夹中的web项目,无需指定Context,Tomcat默认解析Context 阅读全文
posted @ 2016-08-17 13:00 god with us 阅读(14039) 评论(0) 推荐(1) 编辑
摘要: Android异常:Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK. 原因:未授权使用唤醒锁。 解决:在AndroidMan 阅读全文
posted @ 2016-05-30 13:58 god with us 阅读(15768) 评论(0) 推荐(3) 编辑