Rusty Phillips <rphillips <at> edats.com> writes:

> Ultimately, my goal here is to be able to be able to make a file named,
> for instance:
> 
> MyTemplate.xml
> 
> Which is perhaps a tapestry template that specifies an xml-fo document
> when you render it, and be able to render that as:
> 
> http://localhost:8080/app/MyTemplate.pdf
> 
> rather than having a file named "MyTemplate.html" and having to refer to
> the page as:
> 
> http://localhost:8080/app/service=xmlconverter&page=MyTemplate

You can define a service encoder to map xxx.pdf back to
/service=xmlconverter&page=xxx. Tapestry will NOT try to
find xxx.html because you're using your own xmlconverter
service. It is up to that service to decide what to do
with that page=xxx parameter. For example, it may convert
xxx.xml to PDF and send it back to the client.

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


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

Reply via email to