Hello,
I am using the TDK 2.1 to build an application. I have this line in my
DefaultTop.vm:
<a href="$link.setPage("List.vm").setSecure()">
In my TP file I have ssl = true. I am getting the following exception:
[Wed Aug 22 11:20:38 MDT 2001] -- ERROR -- Error rendering Velocity
template: navigations/DefaultTop.vm:
https://localhost/addressbook/servlet/addressbook/template/List.vm
[Wed Aug 22 11:20:38 MDT 2001] -- ERROR -- Error rendering Velocity
template: navigations/DefaultTop.vm: Error rendering Velocity template:
navigations/DefaultTop.vm:
https://localhost/addressbook/servlet/addressbook/template/List.vm
[Wed Aug 22 11:20:38 MDT 2001] -- ERROR -- Error processing navigation
template:
/DefaultTop.vm using module: VelocityNavigation
Exception: org.apache.turbine.util.TurbineException: Error
rendering Velocity template: navigations/DefaultTop.vm: Error rendering
Velocity template: navigations/DefaultTop.vm:
https://localhost/addressbook/servlet/addressbook/temp
late/List.vm
Stack Trace follows:
java.lang.IllegalArgumentException:
https://localhost/addressbook/servlet/addressbook/template/List.vm
at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j
ava:673)
at
org.apache.catalina.connector.HttpResponseBase.encodeURL(HttpResponseBase.ja
va:958)
at
org.apache.catalina.connector.HttpResponseFacade.encodeUrl(HttpResponseFacad
e.java:127)
at org.apache.turbine.util.DynamicURI.toString(DynamicURI.java:974)
at
org.apache.turbine.util.template.TemplateLink.toString(TemplateLink.java:186
)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
a)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java)
at org.apache.velocity.Template.merge(Template.java)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
281,1-8
82% ..... .......... etc.
First of all. What is wrong? Second. Is it Turbines business to verify the
URI before rendering it in the template? I would much prefer to see it,
even if it is wrong, rather than have it disrupt the rendering of the
template.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]