Hi Request is a perThread service so you will not be able to use it outside of a request (example:Startup).
What you can do though is on first request save the serverName and contextPath and use those values Another option is to add them as constants somewhere (example:Symbols) and user those constants on startup Dimitris Zenios On Fri, Apr 3, 2015 at 12:13 PM, TNO <tno...@free.fr> wrote: > Hi, > > I'm using Tapestry 5.3.7, and I'm trying to send mails at tapestry startup > application. > In these mails, I need the full url of the website to create dynamic > links. > > I create a service which needs org.apache.tapestry5.services.Request > (Usually, I use getServerName and getContextPath from Request to create > the url), > but I would like to use it outside the pages at the startup application. > > But the request is always null. > > Is there a solution to use the Request or to get the full path outside > tapestry pages ? > > Any help is welcome > > Thanks, Thomas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >