-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There are a few places it'll get picked up - META-INF not being one of them (not sure I understand that, but it's true). Try moving it to your WEB-INF directory and I bet your URL's get friendlier.
HTH Brian Mitch Christow wrote: > Hi Brian, > > No, the hivemodule.xml file is located in my META-INF directory. Is that not > the right place? Thanks for your help. > > Regards, > Mitch > > > -----Original Message----- > From: Brian K. Wallace [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 14, 2006 5:47 PM > To: Tapestry users > Subject: Re: Friendly URL help in Tap 4.0 > > Mitch Christow wrote: >>> Hi folks, >>> >>> >>> >>> I am trying to implement a very simple friendly URL example. All that I > want >>> to do is use a page link from Home to About. I have added the following >>> snippet of code to the web.xml file: >>> >>> >>> >>> . . . >>> >>> <servlet-mapping> >>> >>> <servlet-name>myApp</servlet-name> >>> >>> <url-pattern>*.html</url-pattern> >>> >>> </servlet-mapping> >>> >>> . . . >>> >>> >>> >>> Furthermore I have added a hivemodule.xml file to my project with the >>> following content: >>> >>> >>> >>> <?xml version="1.0"?> >>> >>> <module id="com.testApplication" version="1.0.0" package=" >>> com.testApplication "> >>> >>> <contribution configuration-id="tapestry.url.ServiceEncoders"> >>> >>> <page-service-encoder id="page" extension="html" >>> service="page"/> >>> >>> </contribution> >>> >>> </module> >>> >>> >>> >>> >>> >>> Lastly, I have created a dirt simple page link from Home to About and one >>> from About back to home. Here is the code for the link from Home to About: >>> >>> <a href="#" jwcid="@PageLink" page="members/About"><img >>> src="images/about.png" name="about" height="27" width="46" border="0" >>> alt="Home" /></a> >>> >>> >>> >>> Note that I also wanted to see if subfolders work, therefore the > About.html >>> & About.page files are located inside a folder called members. So what I >>> expected to see is this: >>> >>> >>> >>> <a href="/myApp/ members/About.html" > >>> >>> >>> >>> However what I got instead is this: >>> >>> <a href="/myApp/app?page=members%2FAbout&service=page" > >>> >>> >>> >>> I can type into a browser the following URL: >>> http://localhost:8080/myApp/members/About.html and I do see my page, so > the >>> decode seems to work, however, the links in the page are simply not > encoded. >>> Am I missing something here? Any help would be greatly appreciated. >>> >>> >>> >>> Regards, >>> >>> Mitch >>> >>> >>> >>> > It appears as though your hivemodule.xml isn't being read. Is it in your > WEB-INF directory? - --------------------------------------------------------------------- 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] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) iD8DBQFDyYGlaCoPKRow/gARAuVsAJ9rlwWb0TuRB8B3WaPJdO4AsNFFAACfVfYc JryIWWEUXAtr+vXDjPMYnc4= =LnM7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]