This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Portlets and HTML Documents Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Portlets and HTML Documents" Watch "Portlets and HTML Documents" New topic
Author

Portlets and HTML Documents

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys

I've done my reading on portlets only recently so please forgive my ignorance.

Is it correct to associate portlets with an HTML Document? Portlets seem to me like just a bunch of page includes although I'm quite aware that something else is happening on the server-side... I'd just like to ask if all the portlets on a single page only equate to a single HTML document?

Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Yeah, when you get a portal page, it's delivered to the client's browser as a single, simple, HTML file, with one start <HTML> tag and one </HTML> tag.

Each portlet generates just a snippet of code to be displayed,usually manifesting itself as a html <TABLE> behind the scenes.

Indeed, you can think of the portal as an aggregation service, aggregating or putting together all of the portlet snippets, very possibly with a jsp:include, and then throwing on a theme for the page, and sending everything back to the client.

So yes, it is pretty complicated as to how the portal figures out user rights, permissions, personalization, customizations, language preferences and the like, but in the end, it's all just a simple HTML page that the client gets.

Neat stuff, eh?

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Portlets and HTML Documents
 
Similar Threads
Passed!
To the author: Portlet session management
jersey and xml
portlet and servlet
Updating a single jsp in two portlets