HOME      
Fundamentals Eclipse IDE
Advanced Most subjects
JSP, Servlets Recently added or updated
Swing Bitcoin
Android Archive :
JavaScript J2ME EJB JSF
Bitcoin donation, thank you
1N3GzjrsHJgZFb46X1dHRBWkxvEEdTqsao

Servlets/JSP

Introduction to Servlets / JSP
  • Web applications
  • Tomcat
  • Eclipse WTP

Servlets

s1.
Simplest
  • handling HTTP GET.
  • query string.
s2.
Form
  • handling HTTP POST.
  • handling HTML FORM.
s3.
Session
  • User session.
  • Maintain state.
s4.
Cookies
  • Maintain state in browser.
s5.
JDBC Query
  • Database query.
s6.
JDBC Update
  • Database update.
s7.
Authentication
  • Username/password.
s8.
Filter
  • Adapting servlet input/output.
Details
Servlet 2.4 specification

JSP, JavaServer Pages

p1.
Simplest
  • Syntax.
  • Expression <%=   %>
  • Generated servlet
p2.
Scriptlet
  • <%  %>
p3.
Declaration
  • <%!   %>
p4.
Objects
  • application
  • request
  • response
  • session
p5.
Content-type
  • Content-type
p6.
Query string
  • ...url?param=value
p7.
FORM POST
  • Handling HTTP POST.
  • Handling HTML FORM.
p8.
Session
  • Maintain state
p9.
Include
  • Include another page.
p10.
Exceptions
  • Error page.
p11.
Forward
  • To another page.
p12.
Bean
  • Using a bean.
  • Its properties
  • Scope
  • XML
p13.
JDBC Query
  • Database query.
  • DataSource.
p14.
JDBC Update
  • Database update.
  • Hidden FORM fields
p15.
Custom tags 1
  • <%@ taglib  %>
  • .tld
  • TagSupport
p16.
Custom tags 2
  • With attributes.
p17.
JSTL Core tags
  • set.
  • out.
  • choose, when.
  • if.
  • forEach.
p18.
JSTL Formatting tags
  • Internationalization.
  • setBundle.
  • message.
  • formatNumber.
  • formatDate.
  • setLocale.
Details JSP
JSP 2.0 specification
Details JSTL
JSTL 1.0 specification