You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Gerald Stampfel <e0...@student.tuwien.ac.at> on 2003/10/21 14:25:55 UTC

Alternative to portlets

Hi folks !

I am currently evaluating, if there are other methods than portlets to
integrate content (by content also small forms like textfield + submit
button e.g. are meant) from different sources, properly framed, into ONE
html page. By different sources i mean with completely independent business
logic(s).

What has to be done (simplified) is a page (again: only one page, no
frames!) where at the top there is shown some information, like the latest
news, and at the bottom there are two textfields, like 'Username' and
'Password', and one 'Login' button. But the developers of these two 'parts'
shouldn't know from each other's part, they are developed completely
independent and without respect to the other. The position of the two parts,
here bottom and top, should be completely customizable.

I know, this is exactly what can be done with portlets, but i need to know
if there is some other solution, possibly better suited for my needs ?

Thanks !

-
Gerald Stampfel
e0125452@student.tuwien.ac.at


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Alternative to portlets

Posted by BaTien Duong <ba...@dbgroups.com>.
Yes, you can do it with a very clean framework of Struts-Tiles. The 
advantage of standard portal / portlet is that:
    1) As a generic web application, the portal container can serve 
other things such as static information using jsp fragments without 
going through portlet container.
    2) If a dynamic web application is a portlet, the portal server gets 
the application response fragment (part of a browser page) through 
standard communication between portal container and portlet container 
(Pluto).
    3) If you apply Request-Response framework (Commons-Chain) to 
different software layers: portal web-application layer, portlet 
container, presentation layer, you have a very clean process and can use 
different frameworks at each layer. For example, you can replace portal 
container and portlet container with any compliant container. Similarly, 
at the presentation layer, you can replace Tiles with other more 
appropriate presentation frameworks for the jobs.
    4) Dynamic application developed under standard portlet can: (1) 
interact with other applications serving user personalized portals, (2) 
supply its services to other utility framework via WSRP, (3) enhance its 
features with other off-the-shelf features over the Internet via WSRP, 
(4) be a plug-and-play portlet application in any compliant portlet 
container.

You can see part of i describe in http://www.dbgroups.com

Hope this may help

BaTien
DBGROUPS

Gerald Stampfel wrote:

>Hi folks !
>
>I am currently evaluating, if there are other methods than portlets to
>integrate content (by content also small forms like textfield + submit
>button e.g. are meant) from different sources, properly framed, into ONE
>html page. By different sources i mean with completely independent business
>logic(s).
>
>What has to be done (simplified) is a page (again: only one page, no
>frames!) where at the top there is shown some information, like the latest
>news, and at the bottom there are two textfields, like 'Username' and
>'Password', and one 'Login' button. But the developers of these two 'parts'
>shouldn't know from each other's part, they are developed completely
>independent and without respect to the other. The position of the two parts,
>here bottom and top, should be completely customizable.
>
>I know, this is exactly what can be done with portlets, but i need to know
>if there is some other solution, possibly better suited for my needs ?
>
>Thanks !
>
>-
>Gerald Stampfel
>e0125452@student.tuwien.ac.at
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>.
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Alternative to portlets

Posted by Jim Wight <jw...@telus.net>.
Gerald,
You might be able using a jsp page to include your other two pages
using the jsp:include tags.

The include page will have the open and close html tags and the included pages
won't.

Below is an include page that is a bit complex.  You may find parts of it useful.
I was using jdbc to access db... you could use any method.

Here I was trying to create
a page that had three columns.  each of the include parts passed a parameter back
to the include page when processed saying what to display.
That would be the <jsp:include page="<%=request.getParameter("selectedLeftUrl")%>" /> tag

One item displayed was a calendar where the little calendar appeared in the left column
and the big display in the center.  Calendar state was difficult to achieve using this method.
For your use though it should be no problem.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.*,java.sql.*,java.lang.*"%>

<%
/**
* RETURNS: Display of personalized page
* ASSUMES: There is a valid result set of personalized data
* GIVEN: java.util.*,java.sql.*,java.lang.*, selection parameters, session MemberID, date parameters
* EFFECT: Page displayed with personal choices visable.  On selection input and choice are shown first
* INCLUDES: code_userPagesRs.jsp, dynamic selected URLs, code_user_page_close.jsp
*/
%>
<%@ include file="code_userPagesRs.jsp"%>

<html>
<head>
<title>Include Home Page Preferences</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000">
<img src="../images/bck-pipes-top.jpg" width="100%" height="140" align="top">
<table width="100%" border="0">
  <tr valign="top">
    <td bgcolor="#996600" width="180"> <table width="100%" border="0">
        <%
			Repeat1__numRows = -1;
			Repeat1__index = 0;
			rsUserPages_numRows += Repeat1__numRows;
			rsUserPages.beforeFirst();
			%>
        <%if(request.getParameter("selectedLeftUrl")!=null){%>
        <tr>
          <td align="center" valign="top">
				<jsp:include page="<%=request.getParameter("selectedLeftUrl")%>" />
		  </td>
        </tr>
        <%}%>
        <% while ((rsUserPages.next())&&(Repeat1__numRows-- != 0)) { %>
        <%
				pos = Integer.parseInt((((rsUserPages_data = rsUserPages.getObject("PagePos"))==null ||
rsUserPages.wasNull())?"":rsUserPages_data).toString());
				incUrl = (String)(((rsUserPages_data = rsUserPages.getObject("ContentURL"))==null ||
rsUserPages.wasNull())?"":rsUserPages_data);
				%>
        <tr>
          <%if(pos == 1){%>
          <%if(request.getParameter("selectedLeftUrl")!=null){
				if(((String)request.getParameter("selectedLeftUrl")).equals(incUrl)){
					;
				}else{%>
          			<td align="center" valign="top">
						<jsp:include page="<%=incUrl%>" />
					</td>
         		 <%}%>
          <%}%>
          <%if(request.getParameter("selectedLeftUrl")==null){%>
				<td align="center" valign="top">
					<jsp:include page="<%=incUrl%>" />
				</td>
          <%}%>
          <%}%>
        </tr>
        <%
			  Repeat1__index++;
			  %>
        <%}	// end left while%>
	</table></td>
    <td bgcolor="#006699">
		<table width="100%" border="0">
        <%
			Repeat1__numRows = -1;
			Repeat1__index = 0;
			rsUserPages.beforeFirst();
			%>
		  <%if(request.getParameter("selectedCenterUrl")!=null){%>
		  	<tr>
		  		<td align="center" valign="top">
					<jsp:include page="<%=request.getParameter("selectedCenterUrl")%>" />
				</td>
			</tr>
		  <%}%>
		<%while ((rsUserPages.next())&&(Repeat1__numRows-- != 0)) { %>
			<%
			pos = Integer.parseInt((((rsUserPages_data = rsUserPages.getObject("PagePos"))==null ||
rsUserPages.wasNull())?"":rsUserPages_data).toString());
			incUrl = (String)(((rsUserPages_data = rsUserPages.getObject("ContentURL"))==null || rsUserPages.wasNull())?"":rsUserPages_data);
			%>
        <tr>
          <%if(pos == 2){%>
		 	 <%if(request.getParameter("selectedCenterUrl")!=null){
		  		if(((String)request.getParameter("selectedCenterUrl")).equals(incUrl)){
					;
				}else{%>
					<td align="center" valign="top">
						<jsp:include page="<%=incUrl%>" />
					</td>
				<%}%>
			 <%}%>

			 <%if(request.getParameter("selectedCenterUrl")==null){%>
				<td align="center" valign="top">
					<jsp:include page="<%=incUrl%>" />
				</td>
			 <%}%>
          <%}%>
        </tr>
			<%
			Repeat1__index++;
			%>
        <%}	// end center while%>
	</table></td>
    <td  bgcolor="#996633" width="180"> <font color="#999999">&nbsp;</font>
<table width="100%" border="0">
        <%
			Repeat1__numRows = -1;
			Repeat1__index = 0;
			rsUserPages.beforeFirst();
			%>
		  <%if(request.getParameter("selectedRightUrl")!=null){%>
		  	<tr>
		  		<td align="center" valign="top">
					<jsp:include page="<%=request.getParameter("selectedRightUrl")%>" />
				</td>
			</tr>
		  <%}%>
        <% while ((rsUserPages.next())&&(Repeat1__numRows-- != 0)) { %>
        <%
				pos = Integer.parseInt((((rsUserPages_data = rsUserPages.getObject("PagePos"))==null ||
rsUserPages.wasNull())?"":rsUserPages_data).toString());
				incUrl = (String)(((rsUserPages_data = rsUserPages.getObject("ContentURL"))==null ||
rsUserPages.wasNull())?"":rsUserPages_data);
				%>
        <tr>
          <%if(pos == 3){%>
		 	 <%if(request.getParameter("selectedRightUrl")!=null){
		  		if(((String)request.getParameter("selectedRightUrl")).equals(incUrl)){
					;
				}else{%>
					<td align="center" valign="top">
						<jsp:include page="<%=incUrl%>" />
					</td>
				<%}%>
			 <%}%>

			 <%if(request.getParameter("selectedRightUrl")==null){%>
				<td align="center" valign="top">
					<jsp:include page="<%=incUrl%>" />
				</td>
			 <%}%>
          <%}%>
        </tr>
        <%
			  Repeat1__index++;
			  %>
        <%}	// end right while%>
	</table></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>


<%@ include file="code_user_page_close.jsp"%>
/////////////////////////////////////////////////////////////

Best regards,

Jim Wight
web-foot.com


-----Original Message-----
From: Gerald Stampfel [mailto:e0125452@student.tuwien.ac.at]
Sent: Tuesday, October 21, 2003 5:26 AM
To: Jetspeed Users List
Subject: Alternative to portlets


Hi folks !

I am currently evaluating, if there are other methods than portlets to
integrate content (by content also small forms like textfield + submit
button e.g. are meant) from different sources, properly framed, into ONE
html page. By different sources i mean with completely independent business
logic(s).

What has to be done (simplified) is a page (again: only one page, no
frames!) where at the top there is shown some information, like the latest
news, and at the bottom there are two textfields, like 'Username' and
'Password', and one 'Login' button. But the developers of these two 'parts'
shouldn't know from each other's part, they are developed completely
independent and without respect to the other. The position of the two parts,
here bottom and top, should be completely customizable.

I know, this is exactly what can be done with portlets, but i need to know
if there is some other solution, possibly better suited for my needs ?

Thanks !

-
Gerald Stampfel
e0125452@student.tuwien.ac.at


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org