You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/16 12:10:03 UTC

How to make the frames work with JSP templates?

Subject: How to make the frames work with JSP templates?
From: "Hu Ji Rong" <hu...@yahoo.com>
 ===
Hi, all

We want the frames for some parts of the pages to have the scroll. For
example, the menu and content part of the template need to be scrollable.

===========================
menu |    content
         |
         |
====|=======================
 logo |   footer
===========================

In our case, the logo and footer (contains summit buttons) never change so
we want to hard code them in the template instead of using <template:get
name='footer'/>. So the final template.jsp looks like this, only the menu
and content frame is changing, but how to change this ' <frame
src="country_details.htm" name="contentFrame" ' to use things like this:
<template:get name='footer'/>.

Or maybe I am asking the wrong question. Can you help? Thanks in advance.
JiRong

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<html><head><title><template:get name='title'/></title></head>
<body background='../images/background.gif'>

<frameset cols="170,*" frameborder="NO" marginheight="0" marginwidth="0"
resize="no">
<frameset rows="180,*,50" border="0" marginheight="0" marginwidth="0"
scrolling="no" >
<frame src="../general/banner.htm" name="bannerFrame" frameborder="NO"
framespacing="0" scrolling="no" noresize target="main">
    <frame src="country_menu.htm" name="menuFrame" frameborder="NO"
framespacing="0" scrolling="NO" noresize>
    <frame src="../general/banner.htm" name="logoFrame" frameborder="NO"
framespacing="0" scrolling="no" noresize target="main">
  </frameset>
  <frameset frameborder="NO" marginheight="0" marginwidth="0" resize="no"
rows="*,47">
  <frame src="country_details.htm" name="contentFrame" frameborder="NO"
framespacing="0" noresize>
  <frame name="buttons" scrolling="no" noresize src="../general/buttons.htm"
target="contents">
</frameset>
</frameset>

</body></html>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>