You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Schneider <er...@centralparksoftware.com> on 2003/09/17 23:11:44 UTC

pdfs as private assets?

Hi,

Just wondering if you can reference pdf files as private assets?  For
security reasons, I prefer not to put these files outside of the /WEB-INF
folder.

Is there a way to reference private assets with a tapestry hyperlink/action?

Thanks,
Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: pdfs as private assets?

Posted by Eric Schneider <er...@centralparksoftware.com>.
Thanks.  That was easy.

e.

----- Original Message ----- 
From: "Howard M. Lewis Ship" <hl...@comcast.net>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Wednesday, September 17, 2003 5:30 PM
Subject: RE: pdfs as private assets?


> You can use the Any component, i.e.
>
> <a jwcid="@Any" href="ognl:assets.mypdf"> the secret doc </a>
>
> Informal parameters whose type is IAsset are converted into URLs when
rendered as attributes.
>
> --
> Howard M. Lewis Ship
> Creator, Tapestry: Java Web Components
> http://jakarta.apache.org/tapestry
> http://jakarta.apache.org/commons/sandbox/hivemind/
> http://javatapestry.blogspot.com
>
> > -----Original Message-----
> > From: Eric Schneider [mailto:eric@centralparksoftware.com]
> > Sent: Wednesday, September 17, 2003 5:12 PM
> > To: Tapestry users
> > Subject: pdfs as private assets?
> >
> >
> > Hi,
> >
> > Just wondering if you can reference pdf files as private
> > assets?  For security reasons, I prefer not to put these
> > files outside of the /WEB-INF folder.
> >
> > Is there a way to reference private assets with a tapestry
> > hyperlink/action?
> >
> > Thanks,
> > Eric
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: pdfs as private assets?

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
You can use the Any component, i.e.

<a jwcid="@Any" href="ognl:assets.mypdf"> the secret doc </a>

Informal parameters whose type is IAsset are converted into URLs when rendered as attributes.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

> -----Original Message-----
> From: Eric Schneider [mailto:eric@centralparksoftware.com] 
> Sent: Wednesday, September 17, 2003 5:12 PM
> To: Tapestry users
> Subject: pdfs as private assets?
> 
> 
> Hi,
> 
> Just wondering if you can reference pdf files as private 
> assets?  For security reasons, I prefer not to put these 
> files outside of the /WEB-INF folder.
> 
> Is there a way to reference private assets with a tapestry 
> hyperlink/action?
> 
> Thanks,
> Eric
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org