You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cocoon User <co...@eng.gr> on 2002/12/03 12:41:54 UTC

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