=========================servlet
javax.servlet    javax.servlet.http    javax.annotation    javax.servlet.annotaion
一个应用中一个servet只能有一个实例,所有用户共用一个servlet实例
Servlet接口定义5个方法{
    void init(ServletConfig config) throw servletException
    void service(ServletRequest requset,ServetRespone response)throw ServletException
    void destory()
    String getServletInfo()
    servletConfig getServletConfig()
}
service 默认实现转到get/post
ServletRequest.getParameter getParameterMap getParameterNames/Values
ServletResponse.getWriter
一个jvm 中有一个ServletContext{
    get/setAttribute removeAttribute getAttributeNames
}
=========================jsp
javax.servlet.jsp.HttpJspPage
javax.servlet.jsp.tagext
javax.el
javax.servlet.jsp.el
隐藏对象
{
    request/response/out(jsp.JspWriter)/session/application(ServletContext)
    config/pageContext(jsp.PageContext)/page(jsp.HttpJspPage)/exception(Throwable)
}
Directive{ @
    page/include(生成servlet时)/taglib
}
scriptlet <% %>
expression <%=xx%> 结果会填入out.print中
declaration <%! %> 声明变量和方法
action{ <jsp:xx></jsp:xx>
    useBean/include(请求时,扩展名一定要"jsp")/forward
}
=========================EL
${} []或. 访问属性
{
    pageContent/initParam/param/ParamValues/header/headerValues/cookie/applicationScope/sessoinScope
}
=========================jstl
http://search.maven.org/#browse|-1002239620
core/xml/i18n/sql/funtion  c/x/fmt/sql/fn
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
javax.servlet.jsp.tagext.SimpleTagSupport
=========================tag 文件
=========================监听器
在 ServletContext HttpSession ServletRequest 上
=========================filter
登录 加密解密 会话检查 图片转换
作用在 ServletRequest ServletResponse上
javax.servlet.Filter {
    init/doFilter/destory
}
model2
struts1 springmvc use servlet作 front controller
struts2 用filter 作 front controller
javaBean {
    无参contruct
    get/set
    Serializable
}
=========================upload file
entype="multipart/form-data"
@MultipartConfig
=========================down file
Content-Type  : application/octetstream
Content-Dispostion  attachment:finename=xxx
=========================decorator
HttpServletRequest/ResponseWrapper
=========================部署
javax.servlet.ServletContainerInitializer{
    onStartup
}
实现这个接口的类@HandleTypes
META-INF/services

java-servlet-jsp的更多相关文章

  1. [Java]Servlet&JSP

    在这里学习Servlet和JSP >> Servlet&JSP的那些事儿 >> servlet [书籍] 孙鑫的<Servlet/JSP深入详解:基于Tomcat ...

  2. Java Servlet JSP编程(一)

    最近想学学java编程,java现在的应用还是挺广泛的,有必要学习一下. # index.jsp <%@ page language="java" contentType=& ...

  3. Java Servlet/JSP容器配置 session id

    http://www.eclipse.org/jetty/documentation/current/session-management.html#setting-session-character ...

  4. java servlet jsp 导入boostrap css js

    1.在导入boostrap.css的时候注意了 一定要注意路径,你知道把js和css包放在servlet服务器的静态路径下面就是 lib 文件夹路径下,直接使用 lib/js/boostrap.css ...

  5. java/servlet/jsp 中String与int相互转换

    String ---> int //方式一:Integer(String s) //demo: Integer i = int a = i.intValue() //方式二:static int ...

  6. Struts框架——(一)用Servlet + JSP演示Struts基本原理

    一. 用Servlet + JSP演示Struts基本原理 struts是开源项目.它通过采用 Java Servlet/JSP 技术,实现了基于Java EE Web应用的MVC的应用框架.Stru ...

  7. servlet&jsp高级:第三部分

    声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...

  8. Java EE JSP内置对象及表达式语言

    一.JSP内置对象 JSP根据Servlet API规范提供了一些内置对象,开发者不用事先声明就可使用标准变量来访问这些对象. JSP提供了9种内置对象: (一).request 简述: JSP编程中 ...

  9. Java开源JSP标签库

    01displytag 与Struts结合使用最出名的一个tag主要是显示表格数据很漂亮.完善. 02cewolf tag 用来在web上显示复杂图形报表的一个jsp tag. 03Loading T ...

  10. springMVC: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config

    springMVC开发web的时候,报错:java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config 原因:未引入jstl ...

随机推荐

  1. 《Code Complete》ch.11 变量名的力量

    What? 如何给变量命名 Why? 易读(你三个月前的代码=别人的代码),易记,恰如其分 整齐的命名具有美感,强迫症患者居家旅行杀人放火之必备 How? 以问题为导向 好名字反映的是问题(what) ...

  2. Linux-服务排查

    root用户下,操作以下5步: 1.查网络,保证本机与对方互相通信 ifconfig ipconfig ping 2.查Linux的对应服务是否启动,使服务的status保持running状态 比如s ...

  3. 【LeetCode】84. Largest Rectangle in Histogram

    Largest Rectangle in Histogram Given n non-negative integers representing the histogram's bar height ...

  4. DragonBone在FlashDevelop编译

    http://dragonbones.github.io/ dragonbones是一个强大的骨骼动画编辑器,基于Starling,用AS3语言编写,可以导出骨骼动画数据供其他程序使用. 下面来讲一下 ...

  5. matlab 小波变换

    MATLAB小波变换指令及其功能介绍 1 一维小波变换的 Matlab 实现 (1) dwt函数 功能:一维离散小波变换 格式:[cA,cD]=dwt(X,'wname') [cA,cD]=dwt(X ...

  6. oracle 空表无法导出

    1.执行该语句   select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;  ...

  7. H264转成RGB24格式-2016.01.21

    #include "libavcodec/avcodec.h" #include "libswscale/swscale.h" #include "l ...

  8. CSS常用的属性命名

    页头:header   如:#header{属性:属性值;}或.header{属性:属性值;},也许你需要了解class与id区别及用法 登录条:loginBar         标志:logo   ...

  9. Velocity原理

    1.准备 添加引用:velocity-1.7.jar,velocity-tools-2.0.jar,commons-beanutils-1.7.0.jar,commons-chain-1.1.jar, ...

  10. Android IOS WebRTC 音视频开发总结(四十)-- 国内webrtc现状

    本文主要介绍目前国内webrtc开发现状,文章来自博客园rtc.blacker,支持原创,转载必须说明出处. 上次一国外合作伙伴问我国内rtc应用和开发状况怎样,哪些城市比较火,那些行业应用比较多,我 ...