Forum OpenACS Q&A: <include> driving me nuts

Collapse
Posted by Bob Powell on
I have a dataget.tcl and dataget.adp page that query the backend database and present the results through my browser just fine.

All I'm attempting to do is put an <include> tag in the dataget.adp document to yank in a piece of text from another file called eraseme.adp.  There is no erseme.tcl page.

I have put in the following code in my dataget.adp page:

<include src="eraseme">

The error message that is returned states,

"No script or template found for page '/web/minerva-dev/www/eraseme.adp' "

Fact is, that is exactly where the eraseme.adp page is.

Can anyone tell me what I'm doing wrong?  All I'm attempting to do is to get a little piece of extra text to print out.  Thanks.

Collapse
Posted by C. R. Oldham on
Did you check to see if the permissions on eraseme.adp allow the webserver to read it?
Collapse
Posted by Janine Ohmer on
This sounds vaguely familiar...

Try creating an eraseme.tcl in the same directory as the .adp. I believe it can be an empty file;  it's presence is all that's required, if I'm remembering this right.

Collapse
Posted by Jeff Lu on
were you able to access the eraseme page by itself? eg. on your browser address localhost:xxxx/eraseme
Collapse
Posted by Bob Powell on
Thank you to all who responded.  I found that if I left the .adp extension off the file name in the "include" command that it works properly.

The ACS documents state that the syntax should be
"include src="
template.adp".  this turns out to be wrong.