the Servlet interface comes here.which is javax.servlet.Servelt.we have some usefull method definitions there.some of them are
- service(ServletRequest, ServletResponse)
- init(ServletConfig)
- destroy()
- getInitParameter()
- getInitParameterNames()
- service(HttpServletRequest,HttpServletResponse)
- doGet(HttpServletRequest,HttpServletResponse)
- doPost(HttpServletRequest,HttpServletResponse
servlet config and servlet context
the ServletConfig object contain the deploy time information of a servlet and the ServletContext will be accessed through this object.and per servlet there will be only one ServletConfig object.the servletContext is used to access web application parameters.and per web application there will be one ServletContext.the doGet() and the doPost()
post is more secured and it has a body where the get does not have.we can use a limited number of parameters with the get.post cannot be bookmarked and is used to send data to process.get is used to get some resourse.
1 comment:
Hello Machn I'm Sandaruwan From Wadduwa. I'm a BIT student.
Here's my blog.
AgroSphere
I'm also an Adsense publisher like you. How is your cmpagn going on.
Post a Comment