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.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<[EMAIL PROTECTED] 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:[EMAIL PROTECTED]
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
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to