Scott-
data.getParameters().get("template") will give you the actual template argument
(the one with foo,bar.vm). My guess is that getScreenTemplate() is a useful
function for code that is trying to find the actual template file, which would
need foo/bar.vm. In fact, the code of getScreenTemplate() actually does the
string replacement you suggest, but in the other direction!
-Brian
On Wed, 19 Dec 2001 10:53:17 -0500
"Weaver, Scott" <[EMAIL PROTECTED]> wrote:
> Turbine 2.2b1-HEAD-20011219
>
> Question:
>
> Why does RunData.getScreenTemplate() return the template in the format of
> "foo/bar", when the actual request was made as "foo,bar". This is somewhat
> confusing since the standard way to request templates is with a comma (,)
> delimiter instead of a slash(/) delimiter.
>
> Is there a good reason this works this way?
>
> p.s.
> Also, there a Turbine class that will convert this for me, or should I just
> use String.replace('/',',')?
>
> Scott
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
Brian Lawler
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>