The bad part is that you still have to have the servlet-mapping's in your
web.xml.

-----Original Message-----
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 09, 2006 10:52 PM
To: Tapestry users
Subject: Re: What when all pages leads to Home?

Great one James, so I won't need to configure it anymore just distribute the
jar with all my apps.
Thanks

On 3/10/06, James Carman <[EMAIL PROTECTED]> wrote:
>
> You can put it in...
>
> /WEB-INF
> /WEB-INF/classes/META-INF
> /WEB-INF/lib/some.jar!/META-INF
>
> It will be picked up in any of those places.  Maybe we should create a jar
> file that has a module in it that enables friendly URLs.
>
> -----Original Message-----
> From: Brian K. Wallace [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 10:32 PM
> To: Tapestry users
> Subject: Re: What when all pages leads to Home?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Where did you put your hivemodule.xml? If it's in a jar, it needs to be
> in META-INF/, however if it's exploded it won't be picked up in a
> META-INF/ dir - make sure it's in WEB-INF/
>
> Vinicius Carvalho wrote:
> > Yeah, As explained on manual (and also I've copied most of config from
> my
> > other tapestry applications ;) )
> >
> > On 3/10/06, James Carman <[EMAIL PROTECTED]> wrote:
> >> Did you enable "friendly" URLs?
> >>
> >> -----Original Message-----
> >> From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, March 09, 2006 10:23 PM
> >> To: Tapestry users
> >> Subject: What when all pages leads to Home?
> >>
> >> Hello, it's kinda late, and I'm pretty sure I forgot something. I have
> a
> >> new
> >> project just started, and every url I put on my browser, no matter the
> >> name
> >> (as long as it finish with .html) it's redirecting to Home page. for
> >> instance:
> >>
> >> localhost:8080/app/X.html
> >> localhost:8080/app/Y.html
> >> localhost:8080/app/Z.html
> >>
> >>
> >> All lead to Home.html (even if there are no X,Y,Z pages declared or on
> the
> >> disk).
> >>
> >> Here are my configurations:
> >>
> >> chat.application
> >> <DEFANGED_application name="chat">
> >>     <page name="ManterEvento"
> >> specification-path="pages/ManterEvento.page"/>
> >>     <page name="Home" specification-path="pages/Home.page"/>
> >>     <library id="contrib"
> >> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
> >> </application>
> >>
> >> hivemodule:
> >> <module id="com.synos.pbh" version="1.0.0">
> >>     <contribution configuration-id="tapestry.url.ServiceEncoders">
> >>     <direct-service-encoder id="direct" stateless-extension="direct"
> >> stateful-extension="sdirect"/>
> >>     <page-service-encoder id="page" extension="html" service="page"/>
> >>     <page-service-encoder id="external" extension="external"
> >> service="external"/>
> >>     <asset-encoder id="asset" path="/assets/"/>
> >>     <extension-encoder id="ext" extension="svc" after="*"/>
> >> </contribution>
> >> </module>
> >>
> >> and web.xml
> >> <web-app id="WebApp_ID">
> >>     <display-name>chat</display-name>
> >>     <context-param>
> >>         <param-name>contextConfigLocation</param-name>
> >>         <param-value>/WEB-INF/applicationContext.xml</param-value>
> >>     </context-param>
> >>     <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>
> >>     <listener>
> >>         <listener-class>
> >>             org.springframework.web.context.ContextLoaderListener
> >>         </listener-class>
> >>     </listener>
> >>     <servlet>
> >>         <servlet-name>chat</servlet-name>
> >>         <servlet-class>
> >>             org.apache.tapestry.ApplicationServlet
> >>         </servlet-class>
> >>         <init-param>
> >>             <param-name>TreeRootDir</param-name>
> >>             <param-value>/</param-value>
> >>         </init-param>
> >>         <load-on-startup>0</load-on-startup>
> >>     </servlet>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.html</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>/app</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.page</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.external</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.direct</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.sdirect</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>*.svc</url-pattern>
> >>     </servlet-mapping>
> >>     <servlet-mapping>
> >>         <servlet-name>chat</servlet-name>
> >>         <url-pattern>/assets/*</url-pattern>
> >>     </servlet-mapping>
> >> </web-app>
> >>
> >> what could I be missing here? There's nothing on the logs :(
> >>
> >> Calling it through the service works though
> >> (chat/app?service=Page&page=ManterEvento)
> >>
> >> Regards
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
>
> iD8DBQFEEPMcaCoPKRow/gARAjGhAKCGQcbRzJ6sF7H1rv5Stv6//rbHYgCg6paB
> jTI80iWU7R7KGM38aEUg5lE=
> =ZGfW
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> 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]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to