You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Glenn Holmer <gh...@weycogroup.com> on 2008/04/01 19:20:05 UTC

servlet context parameters

Is there a less painful way to do this?

$session.getServletContext().getInitParameter("myParam")

-- 
____________________________________________________________
Glenn Holmer                          gholmer@weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Re: servlet context parameters

Posted by Nathan Bubna <nb...@gmail.com>.
the servlet context is automatically available as $application

$application.getInitParameter('myParam')

On Tue, Apr 1, 2008 at 10:20 AM, Glenn Holmer <gh...@weycogroup.com> wrote:
> Is there a less painful way to do this?
>
>  $session.getServletContext().getInitParameter("myParam")
>
>  --
>  ____________________________________________________________
>  Glenn Holmer                          gholmer@weycogroup.com
>  Software Engineer                        phone: 414-908-1809
>  Weyco Group, Inc.                          fax: 414-908-1601
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>  For additional commands, e-mail: user-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org