cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: Dynamic link generation in XSP...???
Date Sun, 13 Apr 2003 08:48:45 GMT
hi gautam,

what about the following:

...
	<td>
		<a>
			<xsp:attribute name="href">edit-tem.html?itemid=<esql:get-string
column="id"/></xsp:attribute>
			Edit item
		</a>
	</td>
...


> -----Ursprungliche Nachricht-----
> Von: cocoon-users-return-49082-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-49082-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Gautam Ganguly
> Gesendet: Sonntag, 13. April 2003 02:35
> An: cocoon-users@xml.apache.org
> Betreff: Dynamic link generation in XSP...???
>
>
> hi there,
>    How do i generate a dynamic link like this in my xsp page:based on a
> column value(=id) returned from a database .Here edit-item.html is the
> sitemap match pattern which will be called when someone clicks on the
> link and the corresponding itemid will get passed to it as a request
> parameter.
>
>  http://10.1.2.3/cocoon/testapp/admin/edit-item.html?itemid=1234
>
> <esql:connection>
>             <esql:pool>prodora</esql:pool>
>             <esql:execute-query>
>               <esql:query>
>                        SELECT id,name from item_list
>               </esql:query>
>               <p>Items List</p>
> 	<esql:results>
> 	  <table>
>                       	<th>Item Id</th>
> 		<th>Item Name</th>
>                  <esql:row-results>
>                  <tr>
>                             <td><esql:get-string column="id"/></td>
> <!-- this is where i want to use the <link><href="edit-tem.html?itemid=
> -->
>                             <td><esql:get-string column="name"/></td>
>                 </tr>
>                </esql:row-results>
>
> hope someone would have already got something like this working.The
> samples that came with cocoon have submit buttons next to them..which is
> not what i want..any suggestions or help would be appreciated.
>
> thanks
> gautam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


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


Mime
View raw message