The three big life-cycle moment
To conclude, override init( ) if you wanna connect to database or do other initialization, and then Override doGet( ) and/or doPost( ) to process request.
Requst & response
HttpServletRequest request
.getParameter(String s): String
.getParameterValues(String s): String[ ]
void setAttribute(String name,Object o)
getRequestDispatcher(String s): RequestDispatcher
HttpServletResponse response
setContentTyoe( )
getOutputStream( )
getWriter( )
MIME:
Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support.
Two choices fro output:
characters or bytes
No comments:
Post a Comment