cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: [RFE] Some enhancements to XSP
Date Wed, 25 May 2005 08:14:16 GMT
> -----Original Message-----
> From: Antonio Gallardo []
> Sent: Dienstag, 24. Mai 2005 23:53
> To:
> Subject: RE: [RFE] Some enhancements to XSP
> On Mar, 24 de Mayo de 2005, 15:40, Nathaniel Alfred dijo:
> > Also for the src="{source}" shortcut I am sceptic.  It breaks when
> > you want to move your <img> content markup from XSP to logicsheet.
> >
> > But I agree that the xsp:attribute markup is too verbose.  
> I'd rather
> > wish for the XSLT analogy:
> >
> >   <xsp:attribute name="src" value="source"/>
> Howto insert there some <xsp:logic>?
> The only idea is to calculate the field value before. But 
> this will be OK?
> Best Regards,
> Antonio Gallardo

Sure, source must be a String assigned before in a <xsp:logic>.
In fact the value attribute could be any String valued Java expression.
If you don't mind the single-quotes:

   <xsp:attribute name="src" value='request.getParameter("source")'/>

Cheers, Alfred.
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

View raw message