You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ryan Cuprak <rc...@mac.com> on 2006/05/31 20:33:08 UTC
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Directly requesting a page
Posted by Shing Hing Man <ma...@yahoo.com>.
If you are using Tap4, try
http://127.0.0.1:8080/app?page=test&service=page
Shing
--- Ryan Cuprak <rc...@mac.com> wrote:
> 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:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Directly requesting a page
Posted by Paul `Order in Chaos` Cantrell <pc...@pobox.com>.
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
> <ja...@carmanconsulting.com> 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:rcuprak@mac.com]
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
_________________________________________________________________
"We're making a mystery here, so make it mysterious."
-- Hayao Miyazaki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Directly requesting a page
Posted by Ryan Holmes <ry...@hyperstep.com>.
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 <ja...@carmanconsulting.com> 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:rcuprak@mac.com]
>>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: users-unsubscribe@tapestry.apache.org
>>For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Directly requesting a page
Posted by Ryan Cuprak <rc...@mac.com>.
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 <ja...@carmanconsulting.com> 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:rcuprak@mac.com]
>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: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Directly requesting a page
Posted by James Carman <ja...@carmanconsulting.com>.
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:rcuprak@mac.com]
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org