Hi guys, I'm wondering if there is a way to create absolute asset URL's in
5.4 without having to use BaseURLSouce? We would like to be able to include
our logo into emails.
Thanks,
George
It's sometimes easy to forget that tapestry is just a normal war running in
a servlet container.
Assuming your building with maven, an image under
src/main/webapp/foo.jpg
will be available as
http://myapp/foo.jpg
On 11 Sep 2014 20:26, George Christman gchrist...@cardaddy.com wrote:
Hi guys,
I have to use an external image scale service and this service needs an
absolute url, the service can't work with a relative url.
On 02.10.2010, at 04:33, Jonathan Barker wrote:
What is your use case?
I need to have absolute URL's for an application and I contribute an
override for the
Have you looked into BaseURLSource?
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/BaseURLSource.html
Overriding it is documented along with https but you can @Inject and
use it elsewhere.
http://tapestry.apache.org/tapestry5/guide/secure.html
Josh
2010/9/30
What is your use case?
I need to have absolute URL's for an application and I contribute an
override for the AssetPathConstructor.
2010/9/30 Christian Koller christian.kol...@net-m.ch
Hi all
In a tapestry page i have:
@Inject
@Property
@Path(context:/img/logo.gif)
private Asset logo;
Hi all
In a tapestry page i have:
@Inject
@Property
@Path(context:/img/logo.gif)
private Asset logo;
If I print the logo I can see:
/assets/7f46afe50e4fd75d/ctx/img/logo.gif
What I need is an absolute url from the logo (e.g:
http://localhost:8080/assets/7f46afe50e4fd75d/ctx/img/logo.gif). Is