Re: Reference non-tapestry files from within tapestry
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reference non-tapestry files from within tapestry
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reference non-tapestry files from within tapestry
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: ... 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]