ok, i created a app called test. then i changed
module.packages=org.test,org.apache.turbine.modules  (shoul this be done by
tdk??)

now if i call http://localhost:8080/test/servlet/test the default screen is
shown.

if i call http://localhost:8080/test/servlet/test/screen/Login i get the
following:

[Thu Nov 16 21:06:25 GMT+01:00 2000] --  ERROR  -- An error occurred while
rendering template /screens/null:
null
[Thu Nov 16 21:06:25 GMT+01:00 2000] --  ERROR  --
 Exception:  java.lang.NullPointerException
 Stack Trace follows:
 java.lang.NullPointerException
 at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:236)

 at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:201)

 at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:106)

 at
org.apache.turbine.modules.screens.VelocityScreen.buildTemplate(VelocityScreen.java:149)

 at
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.java:124)

 at org.apache.turbine.modules.Screen.build(Screen.java:100)
 at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:125)
 at
org.apache.turbine.modules.layouts.VelocityECSLayout.doBuild(VelocityECSLayout.java:106)

 at org.apache.turbine.modules.Layout.build(Layout.java:93)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:122)
 at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:170)
 at org.apache.turbine.modules.Page.build(Page.java:92)
 at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:122)
 at org.apache.turbine.Turbine.doGet(Turbine.java:366)
 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:387)
 at org.apache.tomcat.core.Handler.service(Handler.java:263)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

my questions:
* how can i force the user to login to see any other screen?
* do i have to set the template in Login.java (if the answer is yes: how??)


Jon Stevens wrote:

> on 11/16/2000 10:37 AM, "Martin Poeschl" <[EMAIL PROTECTED]> wrote:
>
> > could someone please explain where to put the class files and templates??
>
> If you create a newapp in the TDK, there is sample classes and templates
> that are automatically put in place for you. Just follow that pattern.
>
> -jon
>
> --
> twice of not very much is still a lot more than not very much
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to