I've got the quick-and-dirty: access HttpServletRequest and via the
HttpSession to the ServletContext object.
E.g.,
def fooParam = Text(
S.servletRequest match {
case Full(r) => r.getSession.getServletContext.getInitParameter
("foo")
case _ => ""
}
)
Best regards,
inca
On 19 авг, 22:29, Naftoli Gugenheim <[email protected]> wrote:
> How can I read a context param (e.g. H2 sets "connection" param)?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---