You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Dawn <pe...@gmail.com> on 2006/11/13 04:42:13 UTC
Reference non-tapestry files from within tapestry
guys,
we have diff depts working on diff files. the other dept has generated
a bunch of plain vanilla html content files which i need to
incorporate within my tap web app. now i have created a separate
folder and have put all files within it. now within my web app, i am
trying to incorporate, on a button click, it should open up a window
with the files.
now i am trying to reference these files but am having no luck. so
essentially within my tap html file i have,
window.open('c:/apache/tomcat/webapps/a/help/index.html'). but however
this is not working.
so i guess my question is how can i reference some external files from
within tapestry w/o letting tapestry let them render them, just accept
them as is. so does anyone know how to do this.
pls help. thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Reference non-tapestry files from within tapestry
Posted by Peter Dawn <pe...@gmail.com>.
i got it. instead of referencing it from the file system, reference it
using the web app. so instead of c:\apache\tomcat\webapp\etc etc go
http:\\localhost:8080\webapp\etc etc.
thanks again nick.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Reference non-tapestry files from within tapestry
Posted by Peter Dawn <pe...@gmail.com>.
thats cool. so what should i have within my js. i mean should i
reference it from the file system something like c:\apache\etc etc.
if its within my html then i can reference it as you have mentioned.
thanks heaps.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Reference non-tapestry files from within tapestry
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Peter.
I usually have "css", "html" and "images" directories inside "context"
at the same level as "WEB-INF". Depending on how your web.xml is set up,
Tomcat will then usually serve these files as e.g.
http://localhost/tapestryappname/html/index.html
That's assuming your Tapestry app is located at:
http://localhost/tapestryappname/app
You can then put a link in your templates etc with:
<a href="html/index.html"> ... </a>
Cheers,
Nick.
Peter Dawn wrote:
> guys,
>
> we have diff depts working on diff files. the other dept has generated
> a bunch of plain vanilla html content files which i need to
> incorporate within my tap web app. now i have created a separate
> folder and have put all files within it. now within my web app, i am
> trying to incorporate, on a button click, it should open up a window
> with the files.
>
> now i am trying to reference these files but am having no luck. so
> essentially within my tap html file i have,
> window.open('c:/apache/tomcat/webapps/a/help/index.html'). but however
> this is not working.
>
> so i guess my question is how can i reference some external files from
> within tapestry w/o letting tapestry let them render them, just accept
> them as is. so does anyone know how to do this.
>
> pls help. thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org