You save my day! Thank you very much, Andreas!!
On 4/28/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: > > <filter> > <filter-name>redirect</filter-name> > <filter-class>org.apache.tapestry.RedirectFilter</filter-class> > <init-param> > <param-name>redirect-path</param-name> > <param-value>/Home.html</param-value> > </init-param> > </filter> > > By default, it redirects to /app > > mike mike wrote: > > >Thank you, Andreas. It used to work, after I created another new project, > it > >doesnt work anymore. Any helps would be appreciated. > > > >I've try the restart.svc, it redirect to /app still. why? > > > >Here's my configuration: (ignore if there is any mispelling) > > > >*.application: (part)* > >< meta key="org.apache.tapestry.servlet-path" value="/" /> > >< meta key="org.apache.tapestry.home-page" value="Home.html" /> <== i > have > >this file under WEB-INF > > > >*web.xml:* > >< servlet> > > < servlet-name>tap< /servlet-name> > > < servlet-class>org.apache.tapestry.ApplicationServlet< /servlet-class> > > < load-on-startup>1< /load-on-startup> > >< /servlet> > > > >< servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>*.html< /url-pattern> > >< /servlet-mapping> > > < servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>*.direct< /url-pattern> > >< /servlet-mapping> > > < servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>*.sdirect< /url-pattern> > >< /servlet-mapping> > > < servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>*.page< /url-pattern> > >< /servlet-mapping> > > < servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>*.svc< /url-pattern> > >< /servlet-mapping> > > < servlet-mapping> > > < servlet-name>tap< /servlet-name> > > < url-pattern>/asset/*< /url-pattern> > >< /servlet-mapping> > > > >< filter> > > < filter-name>redirect< /filter-name> > > < filter-class>org.apache.tapestry.RedirectFilter< /filter-class> > >< /filter> > > > >< filter-mapping> > > < filter-name>redirect< /filter-name> > > < url-pattern>/< /url-pattern> > >< /filter-mapping> > > > > > >On 4/28/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: > > > > > > > >>It's the org.apache.tapestry.RedirectFilter > >>You probably have this in your web.xml > >>Set its redirect-path to whatever you like. > >> > >>mike mike wrote: > >> > >> > >> > >>>Hi all, > >>> > >>>Im implementing friendly URL in my tap 4 program. I've changed the > >>>servlet-path to "/" from "/app", but it doesnt work ... It still > forward > >>> > >>> > >>to > >> > >> > >>>/app, why? anything that I've missed out from the configuration? > >>> > >>>< meta key="org.apache.tapestry.servlet-path" value="/" /> > >>> > >>>Thank you very much. > >>> > >>> > >>> > >>> > >>> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >