Thanks Kent,

That's what I ended up figuring out, and it's also important to add this
to web.xml if your tapestry servlet is mapped to *.html like ours...

  <servlet-mapping>
    <servlet-name>tapestry-servlet-name</servlet-name>
    <url-pattern>*.direct</url-pattern>
  </servlet-mapping>
  
  <servlet-mapping>
    <servlet-name>tapestry-servlet-name</servlet-name>
    <url-pattern>*.sdirect</url-pattern>
  </servlet-mapping>  

regards,

wayne

p.s. thanks for the great tutorial style book Enjoying Web Development!
It looks like we were both at the University of NSW at the same
"downunder" in Sydney too :). I was in a B.E. Comp. Eng. though...
Tapestry is definitely a nice framework to keep promoting, it's so much
cleaner than Struts!

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kent Tong
Sent: Wednesday, December 07, 2005 11:33 AM
To: tapestry-user@jakarta.apache.org
Subject: Re: TableComponent and Friendly URLs

Earnshaw, Wayne <wayne_earnshaw <at> fanniemae.com> writes:

> We have implemented J2EE security that restricts access to only 
> friendly URLs.
> The TableComponent generates links that are based on unfriendly URLs 
> e.g.
> 
> /PhoneBook/?component=table.tablePages.linkPage&amp;page=Home&amp;serv
> ic
> e=direct&amp;sp=AHome%2Ctable.tableView&amp;sp=2

Are you sure you have enable the service encoder for the direct service?

<contribution configuration-id="tapestry.url.ServiceEncoders">
  <direct-service-encoder id="direct" 
     stateless-extension="direct" 
     stateful-extension="sdirect"/>
</contribution>

--
Author of a book for learning Tapestry
(http://www.agileskills2.org/EWDT)


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