You don't actually need the underlying HttpServletRequest, you can use Tapestry's abstraction org.apache.tapestry5.services.Request e.g.
@Inject private Request request; void method() { String context = request.getContextPath(); } There's nothing wrong with using the HttpServletRequest, but keeping the layer of abstraction in place may be a good idea .. particularly if you plan to use your page/component in a portlet environment Toby 2008/8/4 Lutz Hühnken <[EMAIL PROTECTED]> > Hi Argo, > > if I understand you correctly, what you call application name is > usually (or, in "java servlet speak") referred to as the "context". It > is a property of the HttpServletRequest, which provides that > information to you by the method "getContextPath()". > > Check the following pages: > > http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getContextPath()<http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getContextPath%28%29> > http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest > > > Hth, > > Lutz > > On Mon, Aug 4, 2008 at 6:56 PM, Argo Vilberg <[EMAIL PROTECTED]> wrote: > > hi, > > > > > > How to get Application Name in tapestry framework. > > > > http://localost:8080/appname/start > > > > appname?? > > > > > > > > Argo > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >