cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Ng" <stephen...@lumigent.com>
Subject RE: XSP create dynamic an element
Date Tue, 03 Dec 2002 13:33:19 GMT
Try something like:

<img>
<xsp:attribute
name="src"><xsp:expr>imageDisplay</xsp:expr></xsp:attribute>
</img>

--Steve
> -----Original Message-----
> From: Cocoon User [mailto:cocoon@eng.gr] 
> Sent: Tuesday, December 03, 2002 6:42 AM
> To: cocoon-users@xml.apache.org
> Subject: XSP create dynamic an element
> 
> 
> 
> i call an .xsp page like
> http://.../viewer.xsp?image=test.gif
> 
> i send the image file name
> but i dont know how to create an image element with dynamic 
> content for the src attribute
> 
> 
> i have the follow .xsp code
> 
> <xsp:page>
>   <xsp:logic xmlns:xscript="http://apache.org/xsp/xscript/1.0"
>     xmlns:xsp="http://apache.org/xsp">
> 
> 	String imageDisplay = request.getParameter("image");
> 
> 
> 	....
> 
> 	how can i create here an <img> element with src attribute the
>         content of imageDisplay string variable?
> 
> 	exaple <img src="{imageDisplay content}" width="100" 
> height="100"/>
> 
> 	....
> 
> </xsp:page>
> 
> 
> 
> thnx
> Stavros Kounis
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message