RE: Directly requesting a page

2006-05-31 Thread James Carman
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]



RE: Directly requesting a page

2006-05-31 Thread Ryan Cuprak
 
 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-nameapp/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-nameKMI/servlet-name
servlet-classorg.apache.tapestry.ApplicationServlet/servlet-class
load-on-startup0/load-on-startup
/servlet

servlet-mapping
servlet-nameKMI/servlet-name
url-pattern/app/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameKMI/servlet-name
url-pattern*.page/url-pattern
/servlet-mapping
 filter
filter-nameredirect/filter-name
filter-classorg.apache.tapestry.RedirectFilter/filter-class
/filter
filter-mapping
filter-nameredirect/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]