Try something like: <img> <xsp:attribute name="src"><xsp:expr>imageDisplay</xsp:expr></xsp:attribute> </img>
--Steve > -----Original Message----- > From: Cocoon User [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 6:42 AM > To: [EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- 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]>