cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Chávez <ccha...@agsoftware.dnsalias.com>
Subject Re: xsp-request:set-attribute
Date Wed, 07 Jul 2004 16:11:31 GMT

 Hi joose.

Joose Vettenranta Escribio :-)
> I tried to pass information from one point to another with
>
> <xsp-request:set-attribute name="m_id"><esql:get-string
> column="id"></xsp:request-set-attribute>
  I think you can not use this for your intentions.

  better create a input hidden and assign the value what you want send
  to the sitemap.

  Something like this:
  <input name="name" type="hidden">
      <xsp:attribute name="value"><esql:get-string
column="id"></xsp:attribute>
  </input>

  later in the sitemap you can use {request-param:m_id} for access to
  the value.

  Cheers,
  Carlos Chávez.

>
> sitemap.xmap:
>
>     <map:match pattern="info-*.html">
>      <map:aggregate element="page">
>       <map:part src="cocoon:/internal/info-{1}.xml" element="content"/>
>       <map:part src="cocoon:/internal/list-{request-attr:m_id}.xml" />
>      </map:aggregate>
>      <map:serialize />
>     </map:match>
>
> that info-{1}.xml is a XSP with the line I mentioned.
>
> request-attr:m_id always returns nothing.  (also tried: {chain:m_id} =>
> no go)
>
> It should return the id of what I save there... Why it is not returning
> it?
>
> cocoon 2.1.3
>
> - Joose
>
> --
> "Always remember that you are unique, just like everyone else!"
> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


-- 
Carlos Chávez

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message