Servlet - Intermed

Request Headers And Listeners
  • Using the HttpServletRequest interface write code to retrieve HTTP request header information.
  • Using request listeners, write code to respond to an event when an object is added to a request.
Response Headers And Listeners
  • Write code to set the content-type of the response.
  • Write code to manipulate content of response headers.
  • Know difference between ServletOutputStream and Writer objects.
Request Dispatcher
  • Write servlet code to create a request dispatcher and to forward or include the target resource.
  • Know the difference between ServletRequest.getRequestDispatcher() and ServletContext.getRequestDispatcher() methods.
Servlet Config
  • Be able to understand one servletConfig object per servlet, so it is used for servlet specific initialization parameters.
  • Write code to access Servlet Context with the help of Servlet Config.
Servlet Context Listeners
  • Using Servlet listeners, write code to respond to an event when Servlet Context is created or an object is added to a Servlet Context.
Session Life Cycle
  • Know that session object is not thread safe.
  • Using session listeners, write code to respond to an event when session is created or an object is added to a session.
  • Write code to respond to an event when a session object migrates from one JVM to another.i.e. for session activation and passivation.
  • Know the definition of session migration and session replication.
Cookies
  • Be able to understand the format and purpose of a cookie.
  • Write simple code to use cookie for session tracking.
Basic Filter
  • Be able to understand what a filter is and why it is used.
  • Write simple code for logging and auditing-tracking users of a web application.

Not Covered:

  • Authentication-Blocking requests based on user identity.
  • Image conversion-Scaling maps, and so on.
  • Altering original response by use of wrappers.

Structure and Deployment
  • Configure the web.xml deployment descriptor correctly for a servlet with proper placement of servlet init parameters, listeners, distributed and filter related entries.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值