<core:set var="prefix" value="CUSTOMER"/>
<jython:script>
print context.getVariable('prefix')
</jython:script>
Now, if there's a better way, I'd appreciate knowing it. :)
Sean W. Ferguson wrote:
I was wondering if anyone has any examples of mixing jython with jelly code? I can do silly stuff like this:
<jython:script>
from pawt import swing import java
def exit(e): java.lang.System.exit(0)
frame = swing.JFrame('Swing Example', visible=1) button = swing.JButton('Close Me!', actionPerformed=exit) frame.contentPane.add(button) frame.pack()
</jython:script>
But I'd like to be able to reference jelly variables in the jython. If there are good examples out there, I'd appreciate the help. :)
Thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
