It does work if I put the Shop.html inside org/opend/bogo/pages/admin/
But it really doesn't work if put it under WEB-INF/admin :(
I visit the page with "http://localhost/bogo/admin/Shop" , am I right?
Howard Lewis Ship 写道:
org.opend.bogo.pages.admin.Shop will search for its template on the
classpath as org/opend/bogo/pages/admin/Shop.html or in the web
context as
WEB-INF/admin/Shop.html.
I'm pretty sure this works, because I was demoing it for a client
recently
...
On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote:
Hi All,
I set the param-name tapestry.app-package=org.opend.bogo in web.xml
So the default page classes have to be put in package
org.opend.bogo.pages
Now I create a class named Shop.java and the corresponding Shop.html in
sub-package named org.pend.bogo.pages.admin.
It's working fine when I test it .
But when I try to move it to WEB-INF or WEB-INF/admin it will not work:(
It seems that the Shop.thml must be put under package
org.pend.bogo.pages.admin
I have been thinking we should put these html files together.
So I hope it can be put under web context folder or sub-folder. But I
can't now.
Could anybody give me some suggestion?
from Shanghai
Allen Guo
---------------------------------------------------------------------
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]