Uploaded by tutorials168portlets on Jul 11, 2008
This tutorial demonstrates how to get a Portlet to link back to itself within a JSP or even with the HTML code spit out within the doView method of a Portlet. The key is the PortletURL object...
The full video CBT tutorial, along with Java code, downloadable source and sample portlets, and the full resolution vid, can be seen here:
http://jpa.thebookonhibernate.com/jsr168/index.jsp?link=multi06portleturl
Programming portlets presents the web developer with many new challenges, not the least of which is figuring out how to invoke a particular portlet from an html form. A portlet can be placed on a variety of different web pages at runtime. How can we invoke a web-based resource when we don?t know the web address of the page on which it will appear?
Another challenge is making sure that the data submitted through our form goes to our portlet, and our portlet only. We don?t want other portlets on the page using data submitted from our form.
Fortunately, the portlet API addresses these very challenges.
The Challenge of Linking Back to a Portlet
When a user clicks the submit button on a form, there must be an object sitting on the server that is ready to process the user?s request. With typical Servlet/JSP applications, form submissions are forwarded to a servlet, and the name of the servlet is specified as the action of the form; however, we can?t do that with a portlet.
This tutorial looks at the PortletURL object (formerly the PortletURI), and how it can be used to link back to a portlet running on the portal server, regardless of which page the portlet appear on at runtime.
Please support our site, link to us, buy some books, and remember: Happy Java!
We also have a Struts Portlet development example:
http://jpa.thebookonhibernate.com/jsr168/index.jsp?link=multi14jsr168strutspo...
along with a JSF portlet development tutorial:
http://jpa.thebookonhibernate.com/jsr168/399test829mockexamsportletdevelopmen...
-
0 likes, 0 dislikes
5:00Liferay 101 - Introduction to Liferay Layouts b...by StavieThePortalGuy4,122 views
4:4702. Creating your first Liferay Portletby rohitbrai26,264 views
2:11liferayPortalby an5tash3,958 views
0:51Interview Questions on Java And JEE Videoby iqjava10,148 views
4:57Liferay 101 - Introduction to Liferay Instances...by StavieThePortalGuy3,236 views
5:33Taller portlets liferay Parte 1by manuellopezmn2,533 views
8:59How to Display an Image in a Java Portlet JSR16...by tutorials168portlets8,187 views
4:57Liferay 5.1 Simple WCMby liferayinc6,469 views
7:19Liferay 5.1 Introductionby liferayinc25,223 views
2:17MATHEWS TRANSPORTby trikmitruk41,215 views
6:53Action Processing in a JSR168 Portlet: WindowSt...by tutorials168portlets2,453 views
13:30Liferay on Websphereby imanlhakim54 views
4:52Liferay 101 - Introduction to Liferay Basics by...by StavieThePortalGuy13,124 views
7:04PortletModes: doEdit doView doHelp doPrint doCo...by tutorials168portlets2,168 views
6:23Developing JSR168 Portlet Applications w IRAD f...by tutorials168portlets1,526 views
5:40Part2: How to forward to a JSP from a Portlet d...by tutorials168portlets8,357 views
3:24Liferay 101 - Introduction to Liferay Portlet C...by StavieThePortalGuy3,086 views
5:22Vaadin Eclipse Quickstartby vaadinful16,205 views
5:02Bluenog RichPortal Demoby BluenogVideos202 views
4:03Servlet development using Eclipse and Tomcatby vinodvideos43,884 views
- Loading more suggestions...
Link to this comment:
Video Responses
All Comments (0)