You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dan Prince <pr...@3isystems.com> on 2001/04/17 20:16:09 UTC

Redirect Question.

I'm currently using the latest tdk to develope an application with velocity templates. From withing our "SessionValidator" class we are trying to do a redirect to a custom authenticator, outside of the turbine application.  All of this works except that we get an exception orginating from the fact that we don't set a template screen. If we set a template screen the redirect doesn't work (it goes to the template scree we set). Anyone have advice on why this doesn't work or how to make a pluggable solution? Again, how do you succesfully redirect to a URL outside the turbine application?

Here is a copy of the exception I get in the log file:

[Tue Apr 17 13:46:32 EDT 2001] -- ERROR -- Turbine.handleException: TurbineTemplateService: getLayoutTemplateName() was passed in a null value.
[Tue Apr 17 13:46:32 EDT 2001] -- ERROR --
    Exception:  java.lang.Exception: TurbineTemplateService: getLayoutTemplateName() was passed in a null value.
    Stack Trace follows:
    java.lang.Exception: TurbineTemplateService: getLayoutTemplateName() was passed in a null value.
    at org.apache.turbine.services.template.TurbineTemplateService.getLayoutTemplateName(TurbineTemplateService.java:384)
    at org.apache.turbine.services.template.TurbineTemplate.getLayoutTemplateName(TurbineTemplate.java:104)
    at org.apache.turbine.modules.pages.TemplatePage.doBuildAfterAction(TemplatePage.java:140)
    at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:157)
    at org.apache.turbine.modules.Page.build(Page.java:90)
    at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
    at org.apache.turbine.Turbine.doGet(Turbine.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java:475)

-
Dan Prince
prince@3isystems.com
--
work: (540)961-6136
home: (540)961-9377
cell: (804)304-8089


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