on 5/8/01 6:38 PM, "Bragg, Casey" <[EMAIL PROTECTED]> wrote:
> I asked this question before, but let me rephrase it more simply.
>
> If I have a screen called HelloWorld.vm in newapp/templates/screens, should
> I place the corresponding HelloWorld.class in newapp/WEB-INF/classes?
If the package statement at the top of HelloWorld.java is:
package foo;
Then:
newapp/WEB-INF/classes/foo/HelloWorld.class
Is correct.
> Is the correct URL for HelloWorld.vm =
> http://localhost:8080/newapp/servlet/newapp/template/HelloWorld.vm?
Yes.
> Incidentally : Why template? Why not templates?
Because it is singluar. The system is only looking for one specific
template.
The DynamicURI/ParameterParser combination of classes uses PATH_INFO to do
name=value mapping, so the above URL could also be written as:
http://localhost:8080/newapp/servlet/newapp?template=HelloWorld.vm
And that would work equally well.
I think that you are thinking that there is a direct mapping between
newapp/templates/screens and the URL and that is not entirely the case.
template is simply a name/value pair variable.
The reason why we overload the PATH_INFO and added the functionality there
is so that you can create URL's without a "?" in them because search engines
will not index websites with a "?" in them because they are assumed to be
dynamic and therefore not worth indexing. We believe otherwise. :-)
> Thanks for the help. I'll get off Turbine's ground floor one of these days.
Yup.
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]