- Portlets are different from servlets in that they have a 2 phase commit.
- With servlets, the service() method processes all requests.
- With portlets, the processAction() method processes the requests and the render() method draws the contents of the portlet on the page.
init()
- Initializes the Portlet
processAction()
- process input from a user action.
render()
- Renders the content output.
destroy()
- Cleans up the portlet
serveResource()
- Allows a portlet to serve a resource
- The serveResource() method can be used to implement AJAX use cases.
processEvent()
- Perform events triggered by other portlets. (IPC)
No comments:
Post a Comment