Here you can see that after it generates the output it removed the path, and
query data.
public String toString()
{
String output = super.toString();
// This was added to allow multilple $link variables in one
// template.
removePathInfo();
removeQueryData();
return output;
}
-----Original Message-----
From: Craig McDaniel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:53 PM
To: [EMAIL PROTECTED]
Subject: Link Tool Behavior
Does the object returned by the link tool reset itself after the
toString() method is called? Here is an example of this very thing
happening (or so it seems):
----------------------------------------------------------
Source code of ProductsAndServices.html:
#set ($psLink =
$link.setPage("ProductsAndServices_Template.html").addPathInfo("id",$ps.prod
uct))
...
<a href="$psLink"
onClick="PSInfoWindow =
window.open('$psLink.addPathInfo("popup","yes")','PSInfoWindow','$newWindowS
ettings'); return false;"
...
Generates the following output:
...
<a
href="http://servername/nw/s/template/ProductsAndServices_Template.html/id/1
152"
onClick="PSInfoWindow =
window.open('http://servername/nw/s/popup/yes','PSInfoWindow','toolbar=no,lo
cation=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,w
idth=500,height=300'); return false;"
...
---------------------------------------------------------
sorry for the line wrapping :-)
Anyway, as you can see, the second time $psLink is used, we are trying
to add something else to the PATH_INFO. However the template name and
previous PATH_INFO goes bye-bye.
Thanks,
--
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>