1 / 10

Java Web 开发 9

Java Web 开发 9. 回顾与总结. 一、常用的 Web 服务器 IIS Apache Tomcat 通常的动态网页技术 CGI (Common GateWay Interface) API 常用的有 (NSAPI,ISAPI) ASP ( Active Server Page) PHP ( Personal Home Page) JSP/Servlet ( Java Server Page ). J2EE. 二、 JavaScript 、 Java 、 Jsp 的区别.

fergus
Download Presentation

Java Web 开发 9

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java Web开发9

  2. 回顾与总结

  3. 一、常用的Web服务器 • IIS • Apache • Tomcat • 通常的动态网页技术 • CGI (Common GateWay Interface) • API常用的有(NSAPI,ISAPI) • ASP(Active Server Page) • PHP(Personal Home Page) • JSP/Servlet (Java Server Page) J2EE

  4. 二、JavaScript、Java、Jsp的区别 1、JavaScript:浏览器的脚本代码,可以被箝入 HTML 的文件之中 , java的语法规则有些差距 。 2、 Java:java是一种跨平台,跨操作系统的编成开发语言,基本 都是靠底层JDK功劳,JDK也有很多厂家,有主流的SUN公司标准, 也有IBM标准还有很多标准 3、JSP(Java Server Pages)是由Sun Microsystems公司倡导、许 多公司参与一起建立的一种动态网页技术标准。 JSP技术是用JAVA 语言作为脚本语言的,JSP网页为整个服务器端的JAVA库单元提供了 一个接口来服务于HTTP的应用程序。 在传统的网页HTML文件(*.htm,*.html) 中加入Java程序片段(Scriptlet)和JSP标记(tag),就构成了JSP网页(*.jsp)。

  5. 三、JSP中乱码问题的解决 1、jsp页面中的中文显示 <%@ page language="java" pageEncoding="GBK" %>  或者<%@ page contenttype="text/html;charset=gbk";>   这里可以用gb2312或者gbk,只是gbk比gb2312支持跟多的字符。

  6. 2、修改tomcat的server.xml文件中URIEncoding <Connector debug="0" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="80" redirectPort="8443" enableLookups="false“ minSpareThreads="25" maxSpareThreads="75"   maxThreads="150" maxPostSize="0" URIEncoding="GBK" >   </Connector>     这个方法主要针对从url中获取字符串的问题。

  7. <%@ page contentType="text/html;charset=GBK"%> <%request.setCharacterEncoding("GBK");%> <%String s = "嘿嘿";%> <jsp:include page="b.jsp"> <jsp:param name="user" value="<%=s%>"/> </jsp:include>

  8. 四、MIME Multipurpos Internet Mail Extension 指明白传送内容的格式 最早用于邮件附件

  9. 六、HTTP协议基础 HTTP(Hypertext TransferProtocol, 超文本传输协议) HTTP是以明文方式发送数据的 用于从WWW服务器传输超文本到本地浏览器的传输协议。 HTTP协议是以TCP/IP为基础的高层协议。 现在广泛使用的版本HTTP/1.1

  10. 七、Web application WEB-INF是一个特殊的目录,在这个目录下的任何文件都不可以 被web访客直接访问。这个目录包括了java类文件和web程序的配 置信息等 。

More Related