Hi.
I faced the following problem in Tapestry 4.0:
In order to use freindly URLs, I added the following entries to web.xml :
And created the following hivemind.xml file :Code:<servlet-mapping> <servlet-name>app</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>app</servlet-name> <url-pattern>*.direct</url-pattern> </servlet-mapping>
My web application using JavaScript code generated by Tapestry (using Body).Code:<module id="taplet" version="4.0.0" package="org.apache.tapestry.taplet.services"> <contribution configuration-id="tapestry.url.ServiceEncoders"> <page-service-encoder id="page" extension="html" service="page"/> <page-service-encoder id="direct" extension="direct" service="direct"/> </contribution> </module>
When I used -ugly URLs- of Tapestry, JavaScript portion was working correctly, but when I had
enabled the friendly URLs, JavaScript code is no more working.
So what is the problem ?


Reply With Quote