Re: Have root URL render some page other than the "index" page

Cezary Biernacki <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAE26fNiy3XACmw61BuJzDA-vdPugbkLT8M=skub4jH8ktqHk0g@mail.gmail.com>
I am pretty sure that SymbolConstants are  version 5.3 and probably even in
5.0. Anyway you need to put contribution "tapestry.start-page-name" in your
app module class (usually called AppModule if you use default Tapestry
settings in web.xml):

public static void contributeApplicationDefaults(MappedConfiguration<String,
Object> configuration) {
        configuration.add("tapestry.start-page-name", "foo");
   }



On Fri, Jan 12, 2018 at 12:29 AM, Pratik Patel <[email protected]> wrote:

> Thanks. I am using version 5.3.8 which does not have class SymbolConstants.
> I tried passing following context-param through web.xml but that is not
> working either.
>
>         <context-param>
> <param-name>tapestry.start-page-name</param-name>
> <param-value>foo</param-value>
> </context-param>
>
>
>
> On Thu, Jan 11, 2018 at 6:07 PM, Cezary Biernacki <[email protected]>
> wrote:
>
> > You can use contribute symbol "tapestry.start-page-name" (see
> > org.apache.tapestry5.SymbolConstants#START_PAGE_NAME), e.g. by adding
> such
> > method in your AppModule class:
> >
> >     public static void
> > contributeApplicationDefaults(MappedConfiguration<String, Object>
> > configuration) {
> >         configuration.add(SymbolConstants.START_PAGE_NAME, "foo");
> >    }
> >
> >
> > On Thu, Jan 11, 2018 at 11:27 PM, Pratik Patel <[email protected]>
> > wrote:
> >
> > > I am using tapestry version 5.3.8.
> > >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.