How to Display an Image in a Java Portlet JSR168: A Tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,457
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 13, 2008

The original, high resolution, full screen video can be seen at http://www.scja.com/associate (Just follow the link at the top of the page for Portlet Tutorials and Examples)

This tutorial, which comes with both a video and the accompanying Java Source example code, shows you how to develop a JSR-168 compliant portlet that uses a Java Server Page (JSP) to display an image.

Displaying an image in a portlet isn't as easy as displaying an image in a normal JSP or a Servlet. You need to encode the namespace, and make sure you are linking to the right location in the portlet war. If there are any errors. the portal page aggregation process will not locate your image, and you may end with not found errors on your client page, or at the very least, errors in your log files. This tutorial will help you learn hot to propertly display gif and jpg images in a portlet window, and help you avoid any problems or PortletException objects.

For the full resolution CBT tuturial, go to http://www.thebookonhibernate.com (that's my Hibernate and JPA tutorials site) and click on the link at the top for Portlet Tutorials.

(There's also a bunch of links for free, mock certification Java exams for getting Sun certified. Check those out, along with my associated books on the topic)

And if you really liked this tutorial, don't be afraid to buy my book on JSR168 Portlet Development and Programming.

  • likes, 3 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • The video has no sound. It's like I'm young again.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more