Sal Pece has been writing a number of JSR-286 portlet development tutorials for TheServerside. To complement these tutorials, TheServerSide is providing corresponding screencasts that use the code that is documented in these tutorials to demonstrate how Web-based development would be accomplished if an application developer was doing portlet-based Web development with the WebSphere Portal Server as the target runtime and Rational Application Developer 8.5 as the rapid application development tool.
The following video complements the previously published tutorial on mastering the portlet-based request-response cycle, "JSR-286 development tutorial: Mastering the request-response cycle."
The code itself is by no means overwhelming, as the goal of the portlet development tutorial is to have the learner focus on the key concepts, which in this tutorial is how the incoming request is deciphered using the PortletRequest object, and how a response can be formed and sent back to the user using the PortletResponse object. The tutorial creates at two important portlets, one of which is the CountrySnooperPortlet below:
The second portlet developed in this application is the GettingHeadersPortlet. This particular portlet looks at the various header elements sent to the server by the client, and then echoes them back to the user through the portal page on which the portlet resides.
Enumeration<String> e = request.getPropertyNames();
The tutorial itself is only about ten minutes in length, so it doesn't require a massive investment of a software developer's time. So if you're interested in learning more about portlet development, these tutorials are definitely the right place to start.
Do you have any quick tips for mastering Portlet API development? Let us know.
New to Git and distributed version control? Here are some Git examples and Jenkins-Git integration tutorials designed to help you master the popular source code versioning tool.
- The five key Git commands to master first
- Change a commit and manipulate commit history with this hard git reset example
- What happens when you git reset and push?
- Learn to undo a commit with git revert
- Use the git cherry-pick command across branches
- Change the default Git commit editor to Notepad++
- Where the Git configuration files are stored
- Make continuous integration part of your DevOps journey with this Jenkins CI tutorial
- Include Jenkins Git environment variables in your freestyle builds
- Why are Jenkins balls blue not green?
- See how you would do on the Jenkins, DevOps and GitHub interview