On 17.Aug.2002 -- 03:49 AM, Georg Spar wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > very funny! > this is what I tried out: > > <!-- -----snip -------> > <xsp:logic> > String ref = <esql:get-string column="mail_ID"/>; > String m_from = <esql:get-string column="mail_from"/>; > </xsp:logic> > > <!-- -----snip -------> > <xsp-session:encode-url> > <xsp:attribute > name="href">http://linuxsrv:8080/cocoon/wedamas/show.xsp?mid=<xsp:expr > >ref</xsp:expr></xsp:attribute> > <esql:get-string column="mail_ID"/> > </xsp-session:encode-url>
Attention! Do you *know* what xsp-session:encode-url does? Do you *know* what the difference between logicsheet tags and content tags is? xsp:attribute has no effect here since it adds an attributes event to the output pipeline (this is not correct 100% but it captures the idea), You want to specify an attribute to a logicsheet tag. For this, the *logicsheet* needs to support that _and_ provide a tag for doing it. Most logicsheets use <XXXX:param name="name">value</XXXX:param> where XXXX is the xmlns prefix they use. E.g. <xsp-request:param/>. Others use different conventions, do not provide it at all or only for some attributes. Second, xsp-session:encode-url encodes the user's session id in a url, This may be your intention here, but complicates the issue further. Third, why is the esql tag outside the xsp:attribute? In case you care, xsp-session:encode-url does work only on real attributes (i.e. does not allow to dynamically specify them), and copies the tag's children right after the opening tag. So, the behaviour observed is the behaviour to expect. If you would replace the <xsp-session:encode-url/> with a non- logicsheet tag, i.e. <a>, it would work. This is covered in depth in the xsp documentation. Please re-read and help to rephrase it / extend it if you feel it is not sufficiant. Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add "SUMMARY: " to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>