On Wed, 05 May 2010 07:27:25 -0300, Mark Allan <mark.al...@ed.ac.uk> wrote:
Hi All,
Hi!
I've tried a number of variations on the following, but nothing works:
${message:comp/env/StreamServerLocation}
As Inge said, the Tapestry philosophy is to implement logic in classes,
not in templates. You can implement what you want this way:
Page or component class:
public String getStreamServerLocation() {
return (String)((new
InitialContext()).lookup("java:comp/env/StreamServerLocation"))
}
In your template:
${streamServerLocation}
Better yet, follow Inge's advice and put this logic in a server, so it can
be reused all over your application.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org