-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32)
iD8DBQFDyX9XaCoPKRow/gARArL3AKDpM5oiMW+gxkOdMwcLSYb65Ptg6gCeNFo7 mLWb/s2wB4r/vCzz+9qr+aQ= =dMkU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
