You're off on the right foot, but you are missing the "enable friendly URLs" half of James's advice. See:

http://jakarta.apache.org/tapestry/UsersGuide/friendly-urls.html

On May 31, 2006, at 1:45 PM, 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]



_________________________________________________________________

"We're making a mystery here, so make it mysterious."
 -- Hayao Miyazaki



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

Reply via email to