<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Allen Huang wrote:
<blockquote cite="mid20050509173013.23037.qmail@web21128.mail.yahoo.com"
 type="cite">
  <div>I just want to show my root URL address whenever people browse
into other pages of my site. How do&nbsp; I do this in dtml or python script
or external method??</div>
  <p> </p>
  <hr size="1"></blockquote>
Allen,<br>
<br>
You can use index_html as a "call dispatcher".&nbsp; Each ZPT, DTML, etc
form's action should = "." or "index_html".&nbsp; <br>
<br>
Example:<br>
// .................................<br>
EditForm<br>
// .................................<br>
&lt;head&gt;<br>
&lt;script type="text/css"&gt;<br>
function Process() }{<br>
&nbsp;&nbsp; document.form.action_type.value = "Process"<br>
&nbsp;&nbsp; document.form.submit()<br>
}<br>
function Cancels() }{<br>
&nbsp;&nbsp; document.form.action_type.value = "Cancel"<br>
&nbsp;&nbsp; document.form.submit()<br>
}<br>
&lt;/head&gt;<br>
&lt;body&gt;<br>
&lt;h1&gt;my big page&lt;/h1&gt;<br>
..<br>
&lt;form action="index_html" method="post&gt;<br>
&lt;input type="hidden" name="caller" value="editform"<br>
&lt;input type="hidden" name="action" value=""<br>
.<br>
.<br>
&lt;input type="button" onClick="process();return false;"
value="Process"&gt;<br>
&lt;input type="button" onClick="cancel();return false;"
value="Cancel"&gt;<br>
<br>
&lt;/form&gt;<br>
# -------------------------------------<br>
index.html (i use python for this)<br>
# -----------------------------------<br>
request = context.REQUEST<br>
if caller == "editform":<br>
&nbsp;&nbsp; if action_type=="process"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return context.Main(context,request)<br>
if caller == 'someotherform"<br>
&nbsp; &nbsp;&nbsp; return context..SomeOtherForm(context,request) &nbsp;&nbsp; <br>
<br>
etc<br>
<br>
In this way, you always get your apps root directory as the url.&nbsp;
index_html handles all requests. <br>
<br>
David<br>
<br>
<br>
</body>
</html>