RE: how to inject an environment variable
Thanks Dmitry, I am able to keep developing. I reverted back to hibernate 3. And making more progress. I stepped too fast into the hibernate revisions and got bit. Appreciate the help. Its a great forum to share and I hope to give back for others when I see too. - cheers
Re: how to inject an environment variable
@Inject @Symbol("env.VAR_NAME") private String varName; On Mon, May 27, 2013 at 10:35 AM, Ken in Nashua wrote: > Hi Folks, > > Is there a way to inject an environment variable into my page somehow ? > > I would like to automate production mode to anchor off of a OS env var. > been searching for this without luck > Thanks for any tips. > > Ken > -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: how to inject an environment variable
But if all you need is to switch execution mode you should read this: http://tapestry.apache.org/configuration.html#Configuration-SettingExecutionModes and probably http://tapestry.apache.org/symbols.html On Mon, May 27, 2013 at 10:55 AM, Dmitry Gusev wrote: > @Inject @Symbol("env.VAR_NAME") > > private String varName; > > On Mon, May 27, 2013 at 10:35 AM, Ken in Nashua wrote: > >> Hi Folks, >> >> Is there a way to inject an environment variable into my page somehow ? >> >> I would like to automate production mode to anchor off of a OS env var. >> been searching for this without luck >> Thanks for any tips. >> >> Ken >> > > > > > -- > Dmitry Gusev > > AnjLab Team > http://anjlab.com -- Dmitry Gusev AnjLab Team http://anjlab.com
how to inject an environment variable
Hi Folks, Is there a way to inject an environment variable into my page somehow ? I would like to automate production mode to anchor off of a OS env var. been searching for this without luck Thanks for any tips. Ken