Hi,
I've a problem using tiles tag library with JBoss.
I' m using the jakarta-struts-20020226.tar.gz nightly build version.
This is the situation:
1. I use the "get" tag to create a template page:
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="template" %>
<html>
<head>
<title>Monthly Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#CCCCCC" text="#000000" link="#0099CC" vlink="#0099CC"
alink="#0099CC">
<html:form action="/customerDispatcher" name="customerKeyListForm"
type="it.imolinfo.monthlyReport.client.customer.form.CustomerKeyListForm"
scope="session">
<table width="100%" border="0" bgcolor="#FFFFCC" cellspacing="00" cellpadding="0">
<!-- ================================== Menu di primo livello - linguette del
tabbed pane ===================== -->
<tr>
<td bgcolor="#FFFFCC">
<template:get name='firstLevelMenu'/>
</td>
</tr>
</table>
</html:form>
</body>
</html>
2. I use the insert and put tags to create the page:
<%@ page language="java" %>
<%@ taglib uri='/WEB-INF/tiles.tld' prefix='template' %>
<template:insert page='/monthlyReportTemplate.jsp' flush='true'>
<template:put name='firstLevelMenu' content='/firstLevelMenu.jsp' />
</template:insert>
3. The firstLevelMenu.jsp page is:
<table width="100%" border="0" cellpadding="4" cellspacing="0" height="15">
<tr>
<td width="85" bgcolor=#000066><b>
<font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">
<html:link
href="http://localhost:8080/MonthlyReport/customerDispatcher.do?action=listCustomer">
<bean:message key="monthlyReport.clients"/>
</html:link>
</font></b>
</td>
</tr>
</table>
Here is the problem:
the fisrtLevelMenu.jsp page is included in the page as a rude html page. No
processing, as a jsp page require, is done.
Te generated source code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#CCCCCC" text="#000000" link="#0099CC" vlink="#0099CC"
alink="#0099CC">
<form name="customerKeyListForm" method="POST"
action="/MonthlyReport/customerDispatcher.do">
<table width="100%" border="0" bgcolor="#FFFFCC" cellspacing="00" cellpadding="0">
<!-- ================================== Menu di primo livello - linguette del tabbed
pane ===================== -->
<tr>
<td bgcolor="#FFFFCC">
<table width="100%" border="0" cellpadding="4" cellspacing="0" height="15">
<tr>
<td width="85" bgcolor=#000066><b>
<font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">
<html:link
href="http://localhost:8080/MonthlyReport/customerDispatcher.do?action=listCustomer">
<bean:message key="monthlyReport.clients"/>
^^^^^^^^^^^^^^
the problem!!!!!!!!!!!!!!!!
</html:link>
</font></b>
</td>
</tr>
</table>
</td>
</tr>
....
Sure that I'm missing something.
Thanks in advance.
Emiliano.
--
Emiliano Albiani
Corso Garibaldi, 19
55100 Lucca
P.I. 01721430468
Tel. +393297028910
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>