That blog entry is about a year and a half old and doesn't apply to Tap 4. Try this: http://jakarta.apache.org/tapestry/UsersGuide/friendly-urls.html

-Ryan

Ryan Cuprak wrote:


Yup, I am using version 4. That returns the page unprocessed - jwcid and everything. From the blog (http://howardlewisship.com/blog/2004/12/tapestry-urls-half-way-there.html) I added the following to my web.xml:
<servlet-mapping>
 <servlet-name>app</servlet-name>
 <url-pattern>*.html</url-pattern>
</servlet-mapping>
However, I then get the login page for the application- servlet mapping is 
definitely doing something. Excluding some JAXRPC stuff, the other entries in 
my web.xml are:

   <servlet>
       <servlet-name>KMI</servlet-name>
       <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
       <load-on-startup>0</load-on-startup>
   </servlet>

   <servlet-mapping>
       <servlet-name>KMI</servlet-name>
       <url-pattern>/app</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
       <servlet-name>KMI</servlet-name>
       <url-pattern>*.page</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>

   <welcome-file-list>
       <welcome-file>/app</welcome-file>
   </welcome-file-list>

Thanks,
-Ryan

On Wednesday, May 31, 2006, at 11:36AM, James Carman <[EMAIL PROTECTED]> wrote:

Are you in tap4?  If so, enable Friendly URLs and you can invoke the page by
doing:

http://localhost:8080/test.html



-----Original Message-----
From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 2:33 PM
To: users@tapestry.apache.org
Subject: Directly requesting a page

Hello,
How do I directly invoke a page using the page service? I have a test page
at the root of the application which I want to invoke. From the Manning book
I thought the url would look like:
http://127.0.0.1:8080/app?service=page/test

This is just a page for tinkering... was trying to test a new component and
thought I could throw it up on a test page (instead of logging into the app
and drilling through the menus).

Thanks,
Ryan

---------------------------------------------------------------------
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]




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

Reply via email to