Thanks everyone for your replies.

Solution #1 worked.

I haven't yet tried #2.

Thanks
Akshay

At 10:02 AM 10/16/2002 -0600, Chris K Chew wrote:
>1) You will access the template using commas instead of slashes:
>
>http://localhost/servlet/template/xyz,abc.vm
>
>NOTE:  When calling link.setPage() you use commas, but use slashes (/) when
>calling data.setXXXTemplate().
>
>2) In the Velocity Site howto in the Turbine-2 site, there is a section "How
>Templates Are Found".  Use this search process to easily handle security --
>Put a Default screen in each sub-package.  The Default screen in the auth
>package should require security, the Default screen in the unauth package
>should not.  You can read the source code for the SecureScreen to see a good
>example of how to determine if the user is valid
>(http://jakarta.apache.org/turbine/turbine-2/xref/index.html).
>
>There is a lot of info in the above paragraph that I gained from having made
>mistakes on previous turbine apps.  Let me know if you have any specific
>questions about it.
>
>Chris
>
> > On Tue, 15 Oct 2002, Akshay Kapur wrote:
>
> > I have 2 questions. Will really appreciate your suggestions -
> >
> > 1)
> > I have created abc.vm under templates/screens/xyz
> > and on accessing the URL http://localhost/servlet/template/xyz/abc.vm
> > get routed to the default error.vm. What am I doing wrong?
> >
> >
> > 2)
> > I would like to create 2 directories under modules/screens ...
> > modules/screens/auth
> > modules/screens/unauth
> > ... such that the auth directory is configured to be authenticated in
> > web.xml and unauth is un-authenticated. Is this possible and how should I
> > configure this?
> >
> > Regards
> > Akshay
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to