You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alan Chandler <al...@chandlerfamily.org.uk> on 2005/08/27 16:55:37 UTC

Where do I place pages with a subdirectory in the name?

I am trying to create an application whereby certain actions will require 
access.

Rather than write my own, I was thinking that I could just use the Tomcat 
built in security via the use of subdirectories

So my home page is at /famtree/Home.page (I have set up for friendly URLs) and 
I want to have a "Create" page at /famtree/edit/Create.page

I have put a dummy html template for the Create Page at 
WEB-INF/edit/Create.html and there is no (as yet) page specification or 
class, having already got a WEB-INF/Home.html template that I am accessing.

Tapestry throws a page not found exception when I try to link to this page via 
a @PageLink entry with page="edit/Create" in it.

Where should I put the template to get this extended path (so I can use 
security) and how should I refer to it in a @PageLink?


-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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


Re: Where do I place pages with a subdirectory in the name?

Posted by Alan Chandler <al...@chandlerfamily.org.uk>.
On Saturday 27 Aug 2005 15:55, Alan Chandler wrote:
...
> So my home page is at /famtree/Home.page (I have set up for friendly URLs)
> and I want to have a "Create" page at /famtree/edit/Create.page
>
> I have put a dummy html template for the Create Page at
> WEB-INF/edit/Create.html and there is no (as yet) page specification or
> class, having already got a WEB-INF/Home.html template that I am accessing.

OK, putting them in WEB-INF seems to work for the home page, but not for any 
other.  Just moved everything up one level to the WEB-CONTEXT/Home.html and 
WEB-CONTEXT/edit/Create.html and it worked.



-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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